rewrite on urls to add “/”
Posted
by
Jean
on Pro Webmasters
See other posts from Pro Webmasters
or by Jean
Published on 2011-02-27T18:58:02Z
Indexed on
2011/02/27
23:32 UTC
Read the original article
Hit count: 2093
htaccess
|mod-rewrite
Hello,
I know how to rewrite urls to redirect to a page.
When the "/" is not at the end of www.DomainName.com/user/myUserName the redirect works:
RewriteRule /$ /user/index.php
When I write RewriteBase / the above rule does not work, but a 404 error.
How to add a "/"
at the end of www.DomainName.com/user/myUserName/
and still redirect to /user/index.php.
This can be written into the .htaccess or httpd.conf
Thanks Jean
© Pro Webmasters or respective owner