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 [redirects]

A page, link or command that points URL requests to another URL in the world wide web. Redirects can be either server-side or client-side through the use of javascript.

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 ...
2
votes
2answers
253 views

Is it better for SEO to have multiple sub pages or all pages sumed up?

I am doing a relauch of my site. example.de/service has 5 subpages. In my new layout I would love to put all subpages in the parent page (/service) together. But Google already indexed all subpages. ...
1
vote
0answers
286 views

How do I submit a sitemap for URLs on a redirected domain?

I have domain www.example.ca and the domain is redirected to www.example.com. I have sitemap in www.example.com. How do I submit sitemap hosted in www.example.com for www.example.ca?
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 ...
0
votes
0answers
26 views

Have my-domain.com and mydomain.com - which to make canonical? [duplicate]

Further to this question we have two very descriptive domains like dog-toys.ie and dogtoys.ie and have decided we will now make one of them canonical, with HTTPS, and do a 302 from the other domain. ...
0
votes
1answer
213 views

How to redirect port 80 on server A to 443 server B

I'm wondering how can use my server A to redirect different URL's to the respective server. Here is my setup: Server A: apache 2.4 on ubuntu 16 Server B: apache 2.4 on windows 2012 Port 80 is ...
1
vote
2answers
176 views

Apache2 https and www redirects

I wanted to submit my website on my own Debian Apache2 server to the HSTS preload list. It told me I have several things incorrectly set up, so I made adjustments, now it seems to be satisfied. There ...
0
votes
0answers
278 views

HTTPS Redirect “Object moved to here”

I have a website and hosting on win server 2012. Domain is on godaddy. I was using ssl certificate and decided to remove it. I deleted ssl from server and removed 443 port bindings from iis. But ...
3
votes
1answer
38 views

How to handle redirecting all of permalinks to their external sources?

I have this website that fetches pages' meta info (links, title) and their main content from some predefined external websites (Sources), stores them in the database (as posts) and shows them to the ...
3
votes
1answer
32 views

Should I not 301 redirect when changing a business name and domain?

From what I understand if I setup a 301 redirect for: www.joe.com > www.bill.com Then when people navigate to www.joe.com they will be sent to www.bill.com. This also allows search engines to ...
1
vote
4answers
2k views

Will a permanent redirecting domain appear in Google search results?

I have a domain A which will permanently redirect to domain B. May I know if there is a chance domain A will appear from Google search results? Or it will not appear at all? In this case, how do I ...
1
vote
0answers
217 views

Redirect to mobile version with sub domain

I know redirect a website to mobile version such example.com to m.example.com is the best after responsive design but my question is while the desktop URL is example.com/index.aspx and want to ...
1
vote
0answers
16 views

How to make new domain redirect to specific page of main domain without losing SEO?

So I have a exchange office (lets say www.example.com) Wordpress website and I bought a new domain just to sell Euro (www.euroexample.com). I want this new domain to show the specific page for Euro ...
1
vote
1answer
35 views

Disallow redirects from another site

A less than reputable site is redirecting to mine. Short of taking legal action, is there a way to prevent this from happening?
0
votes
1answer
53 views

htaccess rewrite url

is it possible to create a 301 redirect for the following URL string: Original URL: http://www.example.com/old/old-directory/blog-post-1.html Desired destination URL: http://www.example.com/new/new-...
3
votes
1answer
62 views

Should you wait until peak traffic season to move traffic when you can't use SEO friendly redirects?

I have been running a Google Site for some time now and it has managed to gain decent traffic as well. At this Google Site, I have some content on the website itself and some content is uploaded to ...
0
votes
2answers
258 views

If there is a time delay before a redirect, is link juice affected?

If a redirect happens with the following code: <?php $delay = 5; //seconds sleep($delay); header('HTTP/1.1 301 Moved Permanently'); header("Location: http://www.example.com"); ?> is the ...
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 ...
1
vote
0answers
19 views

Should the canonical link contain a link that will never change, the long version with keywords, or a shortened URL from another domain? [duplicate]

I want to prevent SEO from duplicated content. I have a separate domain only for shortened URLs which is mainly for sharing purpose. I plan to set the rel=canonical in the HTML head and redirect to ...
1
vote
0answers
159 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
1answer
41 views

My WordPress site redirects `/?p=###` URLs, is that an SEO problem?

After running a report on using SEOprofiler, I receive notices (not warnings or errors) for every page on my website that a 301 re-direct exists. For example: /?p=3460 301 redirects. The URL ...
3
votes
1answer
309 views

Will Google rankings improve if I use a meta-refresh in a second rather than an immediate 302 redirect?

Will the Google ranking of my page increase when I use a meta refresh with a timer of 2 seconds instead of a 302 redirect without a timer? I'm using this code: <meta http-equiv="refresh" content="...
4
votes
3answers
292 views

How to use a RewriteRule and Redirect 301 at the same time?

I have my Url with multiple parameters: mydomain.com/?vote.php?ranking=parameter1&lang=parameter2&period=parameter3&provider=parameter4 but I would like to change my urls to SEO friendly....
2
votes
2answers
47 views

In WordPress how do you redirect all posts to main URL in an SEO friendly way?

I'm working on a affiliate site that has a bunch of products on it. User clicks the product, and goes to the site the product is located on. Here's my dilemma. All products on my site are each under ...
3
votes
0answers
268 views

.htaccess permanent redirection with condition [closed]

I want to redirect ONLY users from website1 pages to website2 homepage. The google bot and other crawlers must indexing and do not know about redirection. Can you help me? I know how to place the ...
2
votes
1answer
39 views

Can redirecting away from WordPress.com with a “Poor Man's Redirect” preserve SEO?

My situation is the following: I have a WordPress free blog that I want to migrate to a static HTML site. However, I cannot execute PHP on this WordPress domain*, therefore, the solution proposed here:...
2
votes
2answers
81 views

.htaccess RewriteRule leading to unexpected page

I'm trying to do a simple invisible redirection with .htaccess which almost work. I'd like my main domain name example.com to access the content of the folder example.com/V8/ but keeping only the ...
0
votes
1answer
491 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
440 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....
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 ...
0
votes
1answer
44 views

Replace all url start with “ m.” to without “.m” ( m.example.com/index.html To example.com/index.html)

Our previous website has one sub directory called "mobile". So in the main pages we write code if it is screen size less than 640px then go to mobile/ folder . <link href="http://mobile.example....
1
vote
1answer
670 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 ...
0
votes
1answer
55 views

Enabling HTTPS without impact on SEO

I'm planning to migrate all links on a site from HTTP to HTTPS in the near future. However, at the moment all I want to do is to enable HTTPS in order for it to be used on certain private areas of the ...
1
vote
0answers
40 views

How bad is forgetting all old URLs when redesigning a site?

I got to redesign a website for a very popular furniture and appliances company in my country. Currently this site receives around 100k organic traffic per month and 75% for home page. There are ...
2
votes
0answers
16 views

Handling requests for deprecated RSS feeds

The site I run still gets pinged frequently by RSS readers and services, even though we deprecated support for those feeds over two years ago. The URLs currently return a 404. Are there any good ...
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 ...
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 ...
1
vote
2answers
4k views

How to decrease HTTPs redirect wait time?

I use a wordpress plugin to redirect my website to HTTPs however I have noticed a redirect time of 500 ms Which takes the time to first byte to 800 ms. How can I reduce the redirect time?
4
votes
1answer
301 views

Apache HTTP server and redirect-carefully

I checked a server's configuration file and saw 'redirect-carefully' setting. Checking the docs: redirect-carefully This forces the server to be more careful when sending a redirect to the ...
2
votes
1answer
437 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 ...
2
votes
1answer
433 views

.htaccess redirect strip old system content from end of URL

Looking to redirect all URLs which look similar to this: https://www.example.com/discussion/topix/random-page-title.133760/posts/1255466/rate?rating=13&_Token=78139%2C1464617730%...
7
votes
4answers
396 views

How Late is Too Late to Redirect Pages of Domain for SEO

Our company recently had a new website designed for them to replace the old one that was literally made sometime in the mid-90's. The new site went live a couple of months ago. I have just been asked ...
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
1answer
48 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 ...
4
votes
2answers
63 views

.htacess - Remove .html from the homepage but not from folders within within that website

I'm trying to remove the .html from my landing page, an example would be instead of domain.com/contact.html it would be domain.com/contact while at the same time keeping the .html for all the folders ...
1
vote
0answers
51 views

redirecting to external website causes "International Targeting | no return tags” errors in Google Search console

I have a website for an app, in www.myapp.com/get/ i've put a php redirect to https://play.google.com/store/apps/details?id=my.app via header('Location: ' . $location); Now, because Google Play has ...
2
votes
1answer
40 views

Apache 2.4, www.domain.de working but not domain.de

I just moved to a new Host with my website and reinstalled the web server (this time apache 2.4) I'm not very used to the virtual hosts, but I managed to get my subdomain forum.domain.de running (...
3
votes
1answer
139 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/...