Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [301-redirect]

301 is the HTTP status code for a permanent redirect.

Filter by
Sorted by
Tagged with
5 votes
1 answer
4k views

What are the most commonly used and basic Apache htaccess redirects?

This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
10 votes
3 answers
6k views

Are drops in Google ranking common after switching to https?

About a week ago I made the switch to https on one of my sites. I'm positive I did everything right. Properly setup 301 redirects from http to https versions. Added and verified https version in ...
Mike S.'s user avatar
  • 103
9 votes
2 answers
9k views

How to avoid SSL warnings about certificate not for the current site when redirecting alternate domains?

I have multiple domains forward issue. Domains with plurals and singular e.g.: example.com, examples.com, example.biz, examples.biz I forwarded all of them to https://examples.com and https://...
johnsnow's user avatar
  • 191
3 votes
3 answers
2k views

HTTP to HTTPS: Wait for new sitemap to be indexed?

Running HTTP and HTTPS versions of the site side-by-side. HTTP is canonical right now. Goal is to change that to HTTPS. Created a new site in Search Console and submitted a new sitemap 4 days ago. ...
freehat12's user avatar
6 votes
2 answers
4k views

GoDaddy's 301 redirect/forwarding has some weird random middleman URL, kills link juice?

I'm trying to use GoDaddy's 301 redirect, which is named as domain forwarding. I set up forwarding DomainA.example to DomainB.example as 301 "type". I noticed DomainA.example is still indexed in ...
Gintas_'s user avatar
  • 171
10 votes
2 answers
13k views

Retrieve Facebook Like count after changing URL structure for entire website

I just changed the URLs for my entire website. I have set up 301 permanent redirects for all old URLs to new URLs. Rel=canonical are set to new URLs. All Facebook Like buttons count have returned to 0....
donxythe's user avatar
  • 482
5 votes
1 answer
2k views

GSC: How to move a site from a domain to sub domain, sub folder or new domain with a sub folder?

Is it possible to tell Google's Webmaster Tools that our site hosted on www. has moved to a sub folder, sub domain or a new domain with sub folder?
sam's user avatar
  • 4,627
3 votes
4 answers
2k views

Redirect everything from old domain to new domain

I need to (permanent) redirect all of the following: www.example.com www.example.com/folder sub.example.com sub.example.com/folder Basically, all URLs that are reachable without being intended to: ...
Gerben's user avatar
  • 81
16 votes
3 answers
21k views

What is the best way to redirect my naked domain?

I have example.com, which points to web server using A records, I want to redirect all traffic from www.example.com to example.com. As far as i know these are methods, 301 HTML redirect from www to ...
Riyaz Mohammed Ibrahim's user avatar
12 votes
3 answers
16k views

Should I redirect the site IP address to the domain name

I have been told by an SEO company to redirect the site IP to the domain using a 301 redirect. This will apparently improve the SEO ranking of the site. The site has a dedicated IP address. Is this ...
Stephen's user avatar
  • 223
8 votes
1 answer
4k views

SEO and multiple domains to same site

I have one website. I have two domain names that I want to point to the same site install. So whether you go to name-one.com or name-two.com you see the exact same site. Now, I can either set up ...
mikkelbreum's user avatar
28 votes
4 answers
72k views

Is there any way to redirect one domain to another via DNS settings keeping the path information?

For example, my domain is example.com and when someone navigates to example.com/sample/page.htm, I want it to redirect to test.com/sample/page.htm. I know that this can probably easily be done using ...
Senseful's user avatar
  • 825
7 votes
3 answers
11k views

GoDaddy URL forwarding while keeping relative path

I'm hosting my website on Google App Engine and my domain name on GoDaddy. Google App Engine does not allow you to have naked URLs. So it doesn't allow you to have example.com but does allow you to ...
user avatar
6 votes
1 answer
668 views

Impact of migrating whole site from HTTP to HTTPS

We migrated our website to HTTPS everywhere and we have setup a 301 redirect on all the pages when the protocol is HTTP. However, one of the SEO experts who is helping us with all things SEO sent us ...
Anshuman's user avatar
6 votes
2 answers
5k views

How do I setup 301 redirects in Google Apps site?

I have just moved a website from a shared host to a Google Apps site. Is there a way I can setup 301 redirects on my Google Apps site so that old links (with a different URL) can be 301 redirected to ...
qxotk's user avatar
  • 161
5 votes
2 answers
1k views

Is large scale of 301 redirects for URL change harmful for SEO?

I have changed the URL for a large portion of my website (150,000+ URLs) to follow a SEO-friendly structure like all lower-case and hyphenated URLs (earlier they were capitalized at places and had ...
HBalyan's user avatar
  • 446
5 votes
1 answer
20k views

Help with 301 redirect from subdomain to root domain

I need to forward existing subdomain links to the root domain as the subdomain no longer exists. I have tried so many different lines of code in my .htaccess file and can not get the redirect to work. ...
Lin's user avatar
  • 51
4 votes
3 answers
4k views

Subfolder won't permenantly redirect to subdomain

Right now I have the following code to redirect all non-www URLs to www URLs: RewriteCond %{HTTP_HOST} ^example.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] Besides that redirection, I ...
Shawn Collier's user avatar
4 votes
3 answers
2k views

Remove extension from URL using a rewrite without resulting in a redirect loop

On the server, I have a file (on the filesystem) called page.html, which I want to be accessed as site.com/page So if someone goes to site.com/page.html, it should 301 redirect to site.com/page I've ...
arcyqwerty's user avatar
4 votes
2 answers
119 views

Redesigning an old site, structure change etc

I have an old site built in 2006, it has around 200 pages and 500 pictures. Every single page is of course indexed as well as images. It is very well ranked for targeted keywords and I receive good ...
RhymeGuy's user avatar
  • 439
3 votes
1 answer
2k views

Should I change the URLs in the XML sitemap after 301 redirecting them?

I am using 301 redirects for all URLs. Should I change sitemap URLs now? The sitemap currently contains the following URLs: example.com/cat/1.html example.com/cat/2.html example.com/cat/3.html ...
Ario's user avatar
  • 143
3 votes
1 answer
7k views

301 redirect all child pages to parent directory using .htaccess

I need to 301 redirect all child pages of a specific parent directory on my website. i.e. redirect www.example/com/parent/child and www.example.com/parent/another-child etc. to www.example.com/...
Double Clicked's user avatar
3 votes
1 answer
4k views

How to Redirect Pages with Query String?

I want to Redirect as seen below: https://example.com/p1/p2?sort=p.model&order=ASC&page=2 to https://example.com/p3/p4?sort=p.model&order=ASC&page=2 Also, I have this code in my ....
Pasakgroup's user avatar
3 votes
1 answer
469 views

How do I map a (keyword rich) domain name to an existing website?

I am not experienced technical person, and still learning but will try to explain what I have done so far and what my query is. I have a (hypothetical) domain az-studios.com On that domain I have 3 ...
Vincent Leleu's user avatar
2 votes
2 answers
921 views

Want to redirect a domain to a new domain using 301 or 302?

Firstly, I want to redirect an old domain to a new domain, (old site to new site). The old site has good ranking on Google, now if I redirect the site, I want to retain this site on the Google ...
user3636420's user avatar
2 votes
1 answer
740 views

Duplicated content www on subdomain and SSL

I have a eCommerce based on OpenCart, but I was wondering about change my domain name for SEO purposes. For me the critical thing about my changes are the imminent possibility of domain change, I'm ...
Isleno Ituriel's user avatar
2 votes
1 answer
394 views

how to set 301 redirect in wordpress .htacces file

In continuation of my previously asked question preserve-search-engine-index-while-shifting-to-new-domain. The migration is being done in the word-press and we will have same server with same IP.Since ...
Umesh Awasthi's user avatar
2 votes
2 answers
474 views

Domain name made of keywords redirecting to main website's page

Let's say I have a website called books.com where I sell books. I've read on Redirecting different domains to your main site that it's not a bad idea to register another domain that does a 301 ...
ivanivan's user avatar
2 votes
2 answers
152 views

Do short URLs obligate 301 redirects?

Some content management systems such as WordPress and Drupal have Short URLs by default (if the webserver allows it), but at least one other --- MediaWiki, doesn't. Before I continue with the process ...
RAMOS's user avatar
  • 57
1 vote
2 answers
218 views

Merge two domains with 301 redirect

I have two domains (.com and .co.uk) with different websites. In .co.uk domain I have a good ranking and my idea is to redirect the .co.uk domain to .com. I think I have to use 301 redirect. My ...
Tiago Silva's user avatar
1 vote
0 answers
103 views

301 redirect a subdomain and all its variants (https, www, etc) [closed]

I want to redirect 301 from abc.example.com to example.com/abc.html page. I would like to include all variants of the subdomain in the redirect, like abc.example.com www.abc.example.com https://www....
Subhash Chander's user avatar
1 vote
1 answer
1k views

Redirect http www and non-SSL domains to HTTPS without multiple redirects?

I'm losing link juice in multiple redirects. I need to redirect all domain versions to my default domain i.e. https://example.com By all domain versions I mean http://www, http://, https://www and ...
muhammad usman's user avatar
1 vote
2 answers
239 views

What to do with random pages after a 301 redirect?

I did a standard 301 redirect for a domain, but the original domain has about 300 pages that have some strength. It doesn't make sense to make them all point back to the new home page because the ...
user avatar
15 votes
3 answers
25k views

Will putting the HTML from a 301 redirect page into a document perform the same function as a real 301 redirect?

In a web debugger, the html of a 301 redirect page shows up as: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </...
JMC's user avatar
  • 3,280
11 votes
3 answers
337 views

What constitutes a "substantial, good-faith effort to remove the links"

We engaged the services of a 3rd party SEO consultant to assist us in managing our Meta data and to write regular blogs on our site http://cyberdesignworks.com.au Without our authorisation, the SEO ...
Luke McCallum's user avatar
8 votes
3 answers
41k views

How to redirect / convert any URL to lowercase?

I am using: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteRule (.*) http://example.com/$1 [L,R=301] </...
pelajar's user avatar
  • 83
8 votes
3 answers
773 views

Dev site indexed by Google

I was developing a new version of our site on a subdomain (dev.oursite.com) and the robots.txt with the Disallow got replaced at some point, so the site got indexed by Google and other search engines. ...
Kyle's user avatar
  • 215
7 votes
4 answers
3k views

Is it ok to 301 redirect deleted pages to the homepage in order to preserve link juice? -- Even if the homepage is unrelated content?

I'm about to delete 40+ pages that have quality link juice (I'm deleting them for copy write issues). I'd prefer not to do a 404 header on all of them, because I want to preserve inbound links to ...
Graham's user avatar
  • 279
6 votes
2 answers
6k views

I have domain.com and domain.org to the same site, should I use redirects to avoid duplicate content [duplicate]

Possible Duplicate: What is duplicate content and how can I avoid being penalized for it on my site? I have both the .com and the .org for a domain name, and using Apache I point them to the same ...
bunzip's user avatar
  • 125
6 votes
2 answers
12k views

Remove query string from 301 redirect URL

I'm having some trouble with redirects and I haven't been able to get this to work. I want to make the following http://www.example.com/seasonal/christmas?p=15 redirect to http://www.example.com/...
mrblo0m's user avatar
  • 61
6 votes
4 answers
27k views

What's the best way to redirect from domain to subdomain?

I want to install my new site content on a subdomain like subdir.mydomainsite.com instead of the root domain. This is a new domain and not previous content to redirect. The root URL will be empty ...
Mbbc's user avatar
  • 91
6 votes
2 answers
5k views

How can my site detect mobile phones and switch visitors to a mobile Domain?

My Question is that when user enter the website: http://www.example.com then they will just go to automatically to http://www.example.mobi how can i do this .. is their any technique behind that. ...
Appz Venture's user avatar
6 votes
2 answers
7k views

How long should I keep 301 redirecting pages from a deprecated domain?

I had an old domain that I have deprecated, but 301 redirected all results from it to my new site. The new site is now receiving a decent amount of traffic, but I don't know if it's 301 redirected ...
ElHaix's user avatar
  • 895
6 votes
2 answers
1k views

Moving from Subdirectory to Subdomain structure

I have a website (powered by Rails/Postgres and nginx) where I had setup a blog and a coupons section as: http://examplecom/blog/ http://example.com/coupons/ Blog is powered by wordpress and ...
Jimish's user avatar
  • 61
6 votes
2 answers
256 views

Website restyle, SEO migration plan?

I am currently in a project for one of my biggest clients. We have built a website that will -replace- the old website. When it comes to actual content its is largely the same. However, the ...
Goboozo's user avatar
  • 1,098
6 votes
1 answer
1k views

Google Indexing URL that is a 301 redirect

My website URL structure is: http://www.example.com/{record-type}/{record-id}/{human-readable-name} If an invalid human readable name is provided, the page 301 redirects to the correct URL. I've ...
drtldr's user avatar
  • 163
6 votes
1 answer
409 views

How to get rid of crawling errors due to the URL Encoded Slashes (%2F) problem in Apache

The Google web crawler has indexed a whole set of URLs with encoded slashes (%2F) for our site. I assume it has picked up the pages from our XML sitemap file. The problem is that the live pages will ...
user14198's user avatar
5 votes
2 answers
2k views

redirecting https to http

RewriteEngine on RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301] # WordPress Defaults RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} ...
Simran Kaur's user avatar
5 votes
2 answers
615 views

Properly redirect a site to WWW and HTTPS

I recently found out a problem in .htaccess file in my website. When I started the site I did a 301 redirect to redirect all non-www and http request to www with https. I added this lines of code and ...
Anjana Nilupul's user avatar
5 votes
1 answer
394 views

Is a zero second meta refresh tag to 301 a Blogger post a proper solution?

Blogger does not offer a possibility to 301 redirect a post (or the whole blog) to an external domain name (say example.com). One is suggesting to use some zero second meta refresh tags in the header ...
Jérôme Verstrynge's user avatar