html - RewriteRule to redirect to php file not working -
html - RewriteRule to redirect to php file not working -
i want simple redirect clean url's on site. e.g. want ajhtestserver.com/registration/ redirect ajhtestserver.com/registration.php should easy , have used .htaccess rewrites on other sites reason not work me today.
rewriteengine on # turn on rewriting engine rewriterule ^registration[/]$ registration.php [nc,l] # handle requests "registration" i sure simple missing copied have on other sites work fine me confused why refuses work me here (gives me the requested url /ajhtestserver/registration/ not found on server. error). 1 of days :(
any help appreciated.
thanks, adam
if utilize apache ,first should enable rewrite_mode in http.conf or ...\
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^registration/(.*)$ registration.php/$1 [l] check .htaccess syntax or rewrite mode.
php html .htaccess mod-rewrite rewrite
Comments
Post a Comment