![]() |
Htaccess or PHP?
Ok I have a site that I'm trying to build up and basically it's been running off the temporary url that my host offers for when the dns resolves it's built some traffic on that url.
What I want to do is make it so that people can still acess urls on that site, but if google comes around it shows a 301 redirect. Right now I'm doing this with a 301 redirect with htaccess so that all urls are sent to the domain. What I'd like is to have htaccess do a 301 for all urls except the main page, so that if user enters http://subdomain.host.com it shows them the site but when google comes to the page it tells them 301 to the actual domain. All other urls on that subdomain should 301 to the domain. So basically I need either an htaccess or php way of making it so that just the main page is accessible on the subdomain, and that all other urls are directed through the domain. Current Htaccess: Code:
Options +FollowSymLinksNeed some help ^^ +rep for good advice |
can anyone help?
|
| All times are GMT. The time now is 06:57 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0