Tagged Questions
4
votes
1answer
870 views
How can I use .htaccess to rewrite different domains to different sub-directories, masking the sub-directory?
I have a shared hosting plan that allows unlimited addon domains, but they can only point to the public root (/). I use .htaccess to point different domains to their corresponding sub-directories. For ...
1
vote
2answers
96 views
How do I redirect www and non but not IP
I am trying to redirect www.domain.com or domain.com to www.domain.com/temp.html
I am using the following code:
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ ...
2
votes
1answer
180 views
Is there a SEO benefit of a 'reverse canonical redirect' back to the 'friendly' URL?
As far as I understand, you should have a single URL to access a given page on a website to prevent duplicate issues. With this in mind I have setup IIS7 Rewrite to point my friendly URLs to my .aspx ...
0
votes
2answers
80 views
RewriteRules targeting a directory result in a gratuitous redirect
I have a standard CMS-like RewriteRule set up in my .htaccess:
RewriteRule ^(.+)$ index.php?slug=$1
Let's say I have a directory called "foo" in the root directory. For some reason, if you hit the ...