Rewrite rule adding extra slash after URL
Hi,
I'm using the following rewrite rule to redirect example.com to www.example.com in apache. Code:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC] Help Please! |
Hi there,
Quote:
Quote:
It says "Take 'http://www.domain.com/' and append the contents of $1". And $1 contains the local part of the HTTP URL, which always begins with a slash - in this case just '/' for the root document. Leave the trailing slash in your RewriteRule away. [X] Doc CPU |
Quote:
Thanks for the Tips regarding example.com. After removing $ from the rules it worked! Thanks! |
All times are GMT -5. The time now is 06:52 PM. |