I would try this one.Code:Redirect 301 / http://www.some-domain.us/
So I had a site setup on a subdomain which I moved to the main domain. I was trying to setup a 301 redirect from the subdomain to main but have ran into a problem
original url was in this format http://www.subdomain.some-domain.us i want to 301 redirect to http://www.some-domain.us but the code I used ended up doing this instead http://www.some-domain.us/subdomain
Could someone add me in fixing this issueCode:Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} www.subdomain.some-domain.us$ [NC] RewriteRule (.*)$ http://www.some-domain.us/$1 [R=301,L]
I would try this one.Code:Redirect 301 / http://www.some-domain.us/
█Time may come when you will need a UK e-commerce software
█ecommerce testimonials keresőoptimalizálás
Here is how I ended up getting it to work
Even though seems one too many steps. Now it wont let me drop the index.php from the urls.Code:RewriteEngine on RewriteCond %{HTTP_HOST} ^directory.search-for.us$ [OR] RewriteCond %{HTTP_HOST} ^www.directory.search-for.us$ RewriteRule ^/?(.*)$ http://www.search-for.us/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^search-for.us$ [OR] RewriteCond %{HTTP_HOST} ^www.search-for.us$ RewriteRule ^directory/?(.*)$ http://www.search-for.us/$1 [R=301,L]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks