Mod_rewrite and redirects with training forward slash not working
Posted
by
john williams
on Stack Overflow
See other posts from Stack Overflow
or by john williams
Published on 2012-06-19T15:13:09Z
Indexed on
2012/06/19
15:16 UTC
Read the original article
Hit count: 255
I'm using the following lines of code in my .htaccess file to create redirects. The problem is, whenever I go to example.com/register/ it cant find the css files because it's looking for example.com/register/mycss.css instead of example.com/mycss.css.
Redirect 301 register.php http://example.com/register
RewriteRule ^register/?$ register.php
How can I correct this? I'm new to any kind of htaccess/mod_rewrite functions so feel free to point me in the right direction if there are any other flaws.
© Stack Overflow or respective owner