Tag Info

New answers tagged

0

RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} !="" RewriteCond %{THE_REQUEST} ^[A-Z]+\s//+(.*)\sHTTP/[0-9.]+$ [OR] RewriteCond %{THE_REQUEST} ^[A-Z]+\s(.*/)/+\sHTTP/[0-9.]+$ RewriteRule .* http://%{HTTP_HOST}/%1 [R=301,L]


1

All one needs to do is to create an A record in their DNS to point a registered domain to a web binding at a host. 301 and 302 redirects would infer pointing the register's URI to a web hosting service then redirecting the traffic to an entirely new web hosting service. To answer your question about SEO / speed, you're essentially doubling your ...


0

Here is a forum on the DirectAdmin website where they tell you how to edit the .htaccess file through DirectAdmin: You can edit it through the Filemanager in DA, you'd just have to type it in manually. ex: http://domain.com:2222/CMD_FILE_MANAGER/domains/domain.com/public_html/.htaccess?action=edit Once you can edit your .htaccess file you can add ...


3

I generally advise against this. The reason is simple. There often is little to no value in actually changing domain names. Having said that, there are times where a domain name change is required. The simplest way to do this is to set-up a blanket 301 redirect from your old domain to your new domain name. In the case where a page is removed, and you want ...


4

Reading through your questions it seems to me that you think that you only need to do one redirect. That is the case if you are moving a carbon copy of the site. If you changed things around then it gets a little trickier. What would be the best redirect to use? 301 redirect is best if you are moving your site permanently. Here is a great article about ...


1

I feel like I am misunderstanding something, but if I am actually understanding the issue, it seems like two tools would completely solve the problem. (Leave the 301s in place.) Create a robots.txt and disallow all indexing and crawling on the old site. In Webmaster Tools, click Google Index/Remove URLs. Enter the domain name of the old site. It will ask ...


1

If any URL's on your website have changed and the content is the same (or at the very least, similar in nature), then the old URL should 301 redirect to the new URL. It is not necessary to leave the old URL in the site navigation at all, search engines will still visit the old URL whether it is linked to or not providing it is indexed as they will just pull ...


1

Thanks to the hint of Max and this post, I found the answer to my problem: RewriteEngine On RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} ^mydomain.com [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]



Top 50 recent answers are included