![]() |
Redirect example.com/robots.txt to example2.com/example/robots.txt
Hi I have a parked domain (example.com) and I am trying to redirect them to the primary address (example2.com) but within a folder.
So requests for example.com/robots.txt would go to example2.com/example/robots.txt I also need it to work with and without www. The current code i have got is Code:
RewriteCond %{HTTP_HOST} ^example.com$ [OR]Thanks in advance Andy |
Or if you can work out a way of redirecting
example.com/* to example2.com/example/* That would be even better. Andy |
I don't think, you can place the robots.txt file of a domain under another one.
|
After a bit of head scratching and lots of reading I've done it
Code:
RewriteCond %{HTTP_HOST} example.com |
This thread can be marked as Resolved
|
| All times are GMT +1. The time now is 06:27 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.