Dave Posted March 19, 2009 Posted March 19, 2009 Having a little problem, Well not really a problem but something i cannot work out. Im trying to make index.php?action=register show register.php (For instance) by using .htaccess, Haven't had any luck can anyone help? Quote
Lithium Posted March 19, 2009 Posted March 19, 2009 Re: Apache help... capturing a $_GET variable: Options +FollowSymlinks RewriteEngine On RewriteCond %{QUERY_STRING} foo=(.*) RewriteRule ^grab(.*) /page.php?bar=%1 would translate a link/user's request for.. http://domain.com/grab?foo=bar server-side, into.. http://domain.com/page.php?bar=bar Quote
Vali Posted March 19, 2009 Posted March 19, 2009 Re: Apache help... Just redirect the user at register.php, index.php?action=register looks really ugly... Then you can use htaccess to show the index.php script with action=register from there. Quote
POG1 Posted March 19, 2009 Posted March 19, 2009 Re: Apache help... RewriteRule ^/index.php?page=([a-zA-Z0-9]+)$ /$1 [L] I dunno if that will work, its worth a try :) You would be better off using directory like listings for example something like; domain.com/register/ It's better for SEO Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.