Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [301-redirect]

301 is the HTTP status code for a permanent redirect.

3
votes
1answer
600 views

Full domain .htaccess 301 keeping same paths, but also redirect some URLs to different paths

I believe the following code will redirect my old domain to my new domain keeping the same URL paths. RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.newdomain\.co.uk RewriteRule (.*) https://www....
1
vote
1answer
41 views

Redirect my old WordPress to a new website outside of WordPress?

I had an old WordPress website (example.fr, paid domain) and a friend made me a better website hosted outside of WordPress (has nothing to do with WordPress) and I would just like to redirect all my ...
3
votes
1answer
201 views

HTTP website returns 403.4 even when using Plesk Permanent SEO-safe 301 redirect from HTTP to HTTPS

My domain has a valid and activated "Let's Encrypt!" certificate, and going to https://example.com works as it should and shows as being secure in the browser. Through Plesk Onyx 17.5.3 I have ...
3
votes
1answer
72 views

How to 301 redirect back to a pretty link without creating an infinite loop in .htaccess

I am doing a rewrite from .htaccess file to redirect pretty links to original URLs: RewriteRule ^users/?$ /?status=users [NC,L,QSA] which redirects my SEO/pretty link: example.com/users to the ...
1
vote
1answer
203 views

Should I be returning a 301 or 403 to a bad referrer in my .htaccess?

Getting several amounts of bad requests from a particular URL such as site.foo and I would like to redirect all these requests to a dedicated page. The .htaccess code I've researched and implementing ...
0
votes
0answers
680 views

Remove query string from 301 redirect [duplicate]

we would like to 301 redirect all URL query strings to the corresponding URL path without query string. Our URL look like this: https://www.hunter.games/cs/game/detail/geolokacni-hra-praha-prokleti-...
1
vote
1answer
41 views

When can I remove 301 error?

I recently change a domain name of one of my site. This is how I did it. Buy new hosting with new domain name. Move that content and database to new hosting Do 301 redirection to new domain My old ...
1
vote
0answers
46 views

My site doesn't have a SSL certificate, but Google is indexing the HTTPS version [duplicate]

Redirecting to HTTPS causes an error, Google should be indexing the HTTP version. How can I enforce that? I have no forms or logins on my website, I have no SSL certificate. For example: Searching ...
2
votes
1answer
453 views

Do you get referrer data from HTTPS > HTTP > 301 Redirect > HTTPS site?

Referrer data is lost when a HTTPS site links to a HTTP site. If you implement a 301 rediect from your HTTP site to your HTTPS site do you get referrer data? Referring Site | Your Site ...
3
votes
3answers
159 views

Does SEO value get transfered when a 301 redirect points to a page that has another canonical?

I have this scenario: Page A is 301 redirected to another Page B, which has exactly the same content(automated process). But Page B has another rel=canonical Page, the Page C due to some parameters in ...
3
votes
1answer
208 views

Effects of incorrect 301 redirects

I am trying to determine the short-term and long-term effects of bad 301 redirects. We launched a new website, and gave our developer a list of 301 redirects. The developer said they implemented the ...
1
vote
0answers
156 views

If a subdomain or subdirectory is given a 301 redirect does it affect the parent domain in SEO ranking?

I have a website running on example.com, but I wish to have abc.example.com that redirects to another domain altogether like example.net. Is it possible to redirect a subdomain without affecting any ...
1
vote
0answers
56 views

301 Redirects and Merchant center quality

I moved a site to a new platform and the url structure was updated. As far as the Google Merchant Center goes will the 301 redirects suffice or do I need to update my urls within merchant center?
1
vote
0answers
15 views

How do you redirect a reputable domain name to a spelling variation without losing SEO value? [duplicate]

We have a reputable news domain which is about 17 years old. We want to redirect this domain from example-all.tld to exampleall.tld. We will implement a 301 permanent redirect for all URLs. Now ...
3
votes
1answer
996 views

Bluehost - Forward Subdomain with masking

I forwarded a Bluehost subdomain to my home server's IP address. When I enter the subdomain in my browser's address bar, it redirects fine, but it shows the numerical IP address and not the subdomain ...
0
votes
1answer
490 views

Should redirecting URLs be included or excluded from the XML sitemap? [duplicate]

Currently, we're working on optimizing a website for search engines. Would you advise adding to the XML sitemap the URLs of the pages that are being redirected, or the redirect target URLs? In my ...
2
votes
0answers
438 views

How do I redirect a URL with a question mark? [closed]

The ? is not part of a query but used as if it were an actual question. Here's an example: /how-did-penicillin-change-the-world?.html What's the best way to redirect that URL to something like /news....
4
votes
2answers
257 views

Using 301 redirects to change domain and maintain SEO

I’m setting up a Wordpress website with a new domain name to replace my client’s current website. I’d like to redirect the old domain to the new domain in a way that will maintain the search engine ...
1
vote
0answers
32 views

When moving to new domain, should old page redirects be implemented on the the old or new domain?

I am moving our website to new more appropriate domain name. Our current domain has a number of 301 redirects from a former naming structure that we changed a few years back. And we want to maintain ...
1
vote
1answer
663 views

Website redirects to httpss (not https) in Safari and IE but not Chrome

I have made a redirect rule in my .htaccess file for https://pg-flowsolutions.com that specifies that if someone enters an invalid path (for instance https://pg-flowsolutions.com/blablabla) the ...
1
vote
0answers
23 views

How do I implement 301 redirects from a parameter to prevent Google from continuing to index that content? [closed]

I need to implement 301 redirection for example.com/?id=113742 example.com/?id=154242 example.com/?id=XXXXXX All those sites to example.com. I need it in htaccess. I`m using wordpress How do I do ...
1
vote
2answers
690 views

how to deal with URLs containing underscores

I know that hyphnes are preferred to underscores, and I could do a 301 redirect. But some say it's not worth the chaos to change them and I pretty much agree. https://moz.com/community/q/hyphens-vs-...
0
votes
0answers
41 views

How do you do 301 redirects when you've changed platforms?

A client is having problems with 301 redirects producing 404 Error messages. They previously had a WP site, but decided to change it to an HTML one. They are using the same domain name, and hosting is ...
5
votes
1answer
83 views

Wrong URL Requested But I know what they meant - 404 vs canonical vs 301 redirect

I'm using mod_rewrite to process variables in the URL. For many of my URLs the final portion of the string doesn't matter because I'm not using it. For instance: /review/company-25/jb-hunt I'm only ...
2
votes
1answer
214 views

Simple .htaccess language question (redirection)

I do not know the language of .htaccess, thus the newbie question. I have this code: RewriteEngine On RewriteCond %{QUERY_STRING} ^m=1$ RewriteRule (.*) /$1? [R=301,L] It redirects any urls that ...
1
vote
2answers
75 views

HTTPS indexing after migration

I moved my website from HTTP to HTTPS version month ago, and I made all necessary changes, I made 301 redirect so all old links redirect to the HTTPS version, and I added the new version to webmaster ...
2
votes
1answer
433 views

Is there an SEO reason why I shouldn't redirect the root domain to a subdomain?

Is there any downside to redirecting the root domain and the www subdomain to a subdomain of my choice? For example, redirecting smith.com and www.smith.com to john.smith.com. I was talking to ...
4
votes
3answers
1k 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. ...
1
vote
1answer
2k 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/...
1
vote
0answers
514 views

How to redirect / forward a domain to a specific URL?

So, I tried looking around and haven't found the answer I was looking for. I wanted to ask if it's possible to redirect / forward a domain I bought to a specific URL from another website. So let's ...
1
vote
1answer
47 views

.htaccess redirect for one file

Somehow an erroneous URL of mine got indexed by Google. Which is: www.example.com/index.php/ All I want to do is redirect it to the same URL without the / at the end. I have the below that seems to ...
5
votes
2answers
1k 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 ...
1
vote
1answer
824 views

Is it good SEO to 302 redirect from root URL to language and region subdirectory for the user, then tell Google about altenate sites in the sitemap?

We use subdirectories on a global top level domain for a multi-regional site: When a user from Iran enters www.exmple.com it 302 redirects to www.example.com/fa-IR. When user enter from the US enters ...
1
vote
1answer
22 views

New Joomla Website - Confused About 301's

My original Joomla website created numerous URLs that related to the same dynamically generated product page. I have changed website platform (not domain) but the products are the same but now have ...
3
votes
1answer
138 views

Redirect 301 for Apache Sub directory and query string combination

I am getting 404 errors in Google Search Console for URLs like the following: http://www.example.com/newsite12121212121212/eg/st_tour/perma/ http://www.example.com/newsite12121212121212/eg/...
1
vote
0answers
62 views

Are there security concerns with migrating a sub-sub domain to a new platform, leaving another in place, and abandoning a third?

I have been tasked with launching a website for my organization. It is a dept. within a parent organization. Parent Organization Administers domain.com Dept. Organization Administers sub.domain.com ...
4
votes
1answer
387 views

Redirect 301 directive for Apache has no effect for URL with query string

I have this old link http://www.example.com/?page_id=617/ that I want to redirect to the home page. I've tried to implement this redirect with: Redirect 301 /?page_id=617/ https://www.example.com/ ...
2
votes
1answer
40 views

I couldn't create .htaccess redirect

From /etiket/(any page) to /konu/(any page). How can I do it? In .htaccess file. I searched and applied it but couldn't. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase ...
3
votes
2answers
518 views

How bad is it for SEO to use at 302 redirection instead of 301 redirection for HTTPS?

Recently my client has configured HTTPS. I recommended that he implement 301 redirection to 200. His developer could not do that and it is still using 302 redirects. How bad it can affect a website ...
1
vote
0answers
303 views

SEO for multiple domains for the same site

I have a .co.uk site that ranks well (position no. 4 in Google and no. 1 in Bing). After 5 years, I've finally got round to registering the .com for the same site. As this doesn't need to be a .co.uk ...
1
vote
2answers
43 views

When and how does Google Webmasters let you know a “Change of Address” has been successful?

I migrated my blog from one domain to the other and initiated a change of address using Google Search Console's change of address tool recently (three weeks ago). I'm starting to see a comparable ...
1
vote
1answer
39 views

If there is no page, redirecting to the other site

I moved my site and I want to use the old site. The best way to use both is to show the current pages, if there is no page, redirect to the same address on the new site. Can I do this only from the ....
3
votes
1answer
601 views

How to redirect all (www).example.(com/net/org) to https://example.com

How do I setup any URL/URI for http(s)://(www).example.(com/net/org)/somepath to end up at the corresponding: https://example.com/somepath I'm guessing that the solution (if there is one), will ...
2
votes
1answer
98 views

Can I 301 redirect multiples URLs to one page without risking a search engine penalty such as duplicate content?

I have multiples url's directing to a single page, ex: www.example.com.br/phone-calls-right-now www.example.com.br/phone-calls-for-yesterday www.example.com.br/phone-calls-cheaper www.example.com.br/...
4
votes
1answer
56 views

How do I deal with Google indexing variations of my URLs that are not supposed to exist?

My site has this page (URL) that actually exists on my site example.com/ranking/rankings-of-nike-running-shoes but somehow I can see the following versions in SERPs (these URLs are not physically ...
4
votes
1answer
99 views

How can I programmatically redirect to new pages when users change content and the URL slug changes?

I have a PHP website, that has content posted by the administrator, and content posted by loggedin users. I use a content slug in URLs. If a user changes his post the corresponding slug may changes ...
2
votes
1answer
98 views

How do I test a used domain name for Google penalties?

If I launch a new website on a domain name previously used by someone else, and quickly learn that Google doesn't trust this domain (e.g. won't index pages due to past offenses), then can I simply ...
2
votes
2answers
104 views

Canonical to page contain redirect 301 to the same page?

I have the below situation, and need your advice in redirect and Canonical meta: old site: www.example.net/news/example.html new site: abc.example.com/en/news/example.html The old site content ...
2
votes
1answer
172 views

When mass redirecting URLs from the old site, can I redirect everything to the home page of the new site for SEO?

I need to redirect thousands of URLs to my new site (its the same domain, but now is on Wordpress), I don't want to lose all the SEO from the old posts, but I don't know how to redirect each old link ...
1
vote
1answer
50 views

Can a user or a crawler see the source of a page that has been redirected via a 301?

Is it possible for a user or a web-crawler to see the contents/source code of a webdocument that is automatically redirected to another page via a 301 redirect? If it is possible? How could a user ...