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.

2
votes
1answer
381 views

How to redirect all pages of site A, including those with query strings, to homepage of site B

I want to redirect all pages of SiteA to homepage of SiteB. I used this code in SiteA's .htaccess file: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(.*)$ https://SiteB.tld/ [...
-1
votes
1answer
14 views

How to direct main domain pages to sub domain [duplicate]

One of my client had a wordpress website say www.example.com.au in wordpress As they wanted to have separate websites for different locations, we created subdomains for each location like sydney....
1
vote
0answers
32 views

How to redirect multiple URL's to the same URL. [closed]

I have been searching for a solution to this but can't find a good answer. I am trying to achieve the following through Wordpress with the Yoast SEO plugin. Here is what I am trying to do: I need to ...
1
vote
0answers
33 views

.htaccess redirect to new domain with new page name [closed]

Does anyone know how (or if) I can do an .htaccess redirect if both the domain and page name have changed? I can get olddomain.com/page/ to redirect to newdomain.com/page/ (same page name), but not ...
1
vote
1answer
24 views

How can I redirect all WordPress post URLs that don't contain a subcategory to prevent duplicate content?

On my WordPress site, I have this URL format: /%category%/%postname%/ When I create a new post and select a parent category and a sub-category and select sub-category to default then WordPress ...
0
votes
1answer
45 views

Subdomain redirection to external subdomain

I need to create a redirection from my own subdomain to an external subdomain, like subdomain.domain.com -> subdomain.external.com. So if anyone try to enter in my subdomain, it redirects ...
1
vote
2answers
49 views

How to ensure historic backlinks point to primary domain

Hope someone can assist with this DNS/Redirection issue. I'll try to keep this to the point. There are two domains and two subdomains to deal with. olddomain.com is with registrar A. newdomain.com ...
1
vote
0answers
165 views

.htaccess How to redirect some specific pages, then a blanket rule to new domain?

I am creating a new website on a new domain, and doing page-to-page redirects from the old website for (A) all static pages, as well as (B) all blog posts. A) The static pages follow a new URL ...
2
votes
0answers
250 views

.htaccess for two languages and corresponding redirect for every page based on accept-language

I have a website www.example.es, with this structure: www.example.es index.php 404.html somepage.html www.example.es/en index.php 404.html somepage.html I want to redirect any language but es to ...
1
vote
2answers
261 views

IP address redirect works, Domain redirect does not

Similiar to issue found here. Running debian, apache2, trying to redirect example.org.com to example.org.com/aplication/calculator. I have enabled mod_rewrite hence why IP redirect works. However if ...
3
votes
1answer
309 views

Redirect a domain to a sub-page on another domain

(Examples below are illustrative only and not real domains.) Imagine I have turtles.com and the site has been up for some time. Now imagine that I have reptiles.com. Would it be "bad" (for SEO, ...
1
vote
0answers
79 views

SEO: Redirect root to a sub-dir, build new content on root, keep old rankings for redirected sub-dir

I want to move our page from site.example to www.site.example/home but keep the SEO rankings from when that same content resided on the root domain. Then I want to build back up the site.example ...
1
vote
1answer
123 views

Googlebot smartphone redirect

We are using two different domains for our desktop and mobile websites. "www.x.com" and "m.x.com". The users with mobile devices ending on "www.x.com" are (302) redirected to "m.x.com" I have just ...
1
vote
0answers
23 views

A domain is 301ing all its URLs to my site - will it affect my sites SEO?

A random domain is 301ing all its URLs to my domain. When you request a URL to the domain in question via https, it responds by 301ing to my site (also https) with the original request URL intact. ...
1
vote
1answer
46 views

Do URL redirects negatively affect SEO when part of a site restructuring?

I understand that no 'Link Juice' is lost, when implementing a 301 Redirect for the purposes of redirecting from http to https prefixes. What about redirects, when a site goes under a restructure? ...
0
votes
0answers
58 views

Google AdSense violation on non SSL page?

I had a violation with Google AdSense recently and was able to clear it up thanks to the help of this forum. However, the same URL is displaying the same violation for the http version of the site, ...
2
votes
1answer
134 views

I have three virtualhosts on my WAMP Stack, one works, the other gets 404'd

Hi everyone I'm new both to this site and to backend web stuff. Thank you in advance for any and all help. Like I said in my title, I have three vhosts, two of which I can point the browser towards ...
1
vote
1answer
279 views

cPanel, redirection and aliases (forces redirection) [closed]

I have cPanel and I have domain A, Then I created a Domain Alias B, But Alias B has been redirected to A domain, I don't want to redirect it.
6
votes
6answers
1k views

Are there downsides to using a 301 redirect from a shorter URL on our own domain rather than using a URL shortener service?

Wondering if there are any negative implications to using a redirect on my own domain as a kind as a URL Shortener. I am often asked by folks creating printed documents for "short URLs". My ...
5
votes
1answer
38 views

Moved subdirectory subsite to own domain, how to reconfigure Google Analytics?

We had a website http://mainsite.com that has a subdirectory subsite at http://mainsite.com/subsite. We've split that subsite off into http://subsite.com/ We are still tracking the subsite by using ...
2
votes
2answers
248 views

Multilingual site: redirect to other language or show duplicate content?

I've got a multilingual site. When a user tries to access one of my pages, say /es/agreement, I would like to display the English version of that page, regardless of what language the user is ...
3
votes
1answer
36 views

htaccess redirect to another website while cutting a string from address

I'm trying to make a redirect with htaccess. Let's say that I have two websites: www.oldsite.example www.newsite.example What I want to do is redirect old to new with random_file.html renamed to /...
0
votes
0answers
38 views

Staging Environment - htaccess redirect to subdirectory a bad idea?

So far I've successfully implemented a staging environment in a subdirectory. I've copied all the files in /public_html/ to public_html/staging/ and duplicated the database. I want to know if I can ...
1
vote
3answers
97 views

My client's website is receiving a lots of visits from a shady website - what should I do about it?

My client's website is getting lots of visits and backlinks from and unknown URL that looks shady. When I try to visit the page it opens another website with a different URL. What should I do about ...
4
votes
1answer
73 views

How to redirect from https://hi@example.com/x, to just https://example.com/x (htaccess)?

I have a weird problem where for some reason search engines see that I have duplicate URLs, like https://hi@example.com/x and https://example.com/x I'd like the first (i.e. with hi@) to 301 redirect ...
1
vote
2answers
2k views

Forcing https causes all folders to redirect

I have quite a large site that consists of some regular web pages in the root and a lot of Joomla sites in folders. So it looks a little like this: - index.php (root) - about.php (root) - product....
0
votes
2answers
61 views

How to redirect website with SSL (HTTPS) to without SSL (HTTP)?

I have a WordPress site on a domain that used to be HTTPS, example domain https://example.com. I now want to remove HTTPS temporarily. How do I do that? I have tried to add the following to my ....
2
votes
2answers
47 views

Will redirecting a site from a .com domain to a .ie domain affect SEO?

I have 2 domains. My old domain (on Bluehost) is now redirecting to a new domain (on Blacknight). Home page is successfully redirecting, but other internal links are still pointing to old domain. I'...
2
votes
1answer
294 views

Tracking external links with internal redirect URL - best practice?

We operate a site that lists service providers and serves as a lead generation platform for them, specifically via external links that point to our partners. (~90% of our pages contain 1-3 such ...
1
vote
4answers
425 views

Strange redirection to root when trying to access subdomain

There's this weird issue that's been keeping me wondering what's happening. I apologize for the lack of specificity, but I need to abide to a strict NDA policy. So here goes my question: Is there ...
2
votes
3answers
40 views

When migrating a site to WordPress where the URLs will no longer end in .html, will my SEO be affected?

I created example.com/about.html using a simple HTML web hosting and I want to migrate to a WordPress site. If I install WordPress on my hosting, I would essential be removing .html from all my 50 or ...
1
vote
2answers
195 views

301 redirect to HTTPS with back links to prevent ranking problems when moving from HTTP

Would like to ensure my sites rankings are not affected by doing the wrong type of redirect so I have a site that has been on non HTTPS since it was purchased many years ago. Now I'm looking to change ...
0
votes
1answer
24 views

Redirect 3rd level domain to 2nd level — Will Analytics count traffic twice?

I am redirecting mycompany.com/product to promo.mycompany.com/product My question is: Will Google Analytics count traffic twice under /product ?? I am doing this because I create landing pages ...
3
votes
2answers
2k views

nginx http to https redirect - just isn't working

I am running my own webserver with nginx on ubuntu 17.10. I have opened ports 80 and 443. Trying to get the HTTP to HTTPS redirect working, but everthing i seem to have tried fails. i am still ...
2
votes
1answer
100 views

How to fix a redirect from naked domain that times out when https is put in front but works with http

I am a developer and have very little knowledge of DNS and hosting, etc. A client for an app I have inherited recently switched over to running everything over https only. However when this URL ...
1
vote
1answer
967 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://...
2
votes
4answers
436 views

Should I redirect login / admin pages to the home page?

I'm on a security kick right now and my current project is a server with a Wordpress site (that used to be a Joomla site). I sometimes get 50 requests a day to /wp-login.php (the Wordpress default ...
0
votes
0answers
60 views

How do I redirect URLs ending with %5C,m3 using nginx?

On my WordPress setup I am noticing a lot of 404s with the following format: https://example.com/post-1/%5C,m3= https://example.com/post-2/%5C,m3= ... My guess is that %5C,m3= is being added by some ...
1
vote
2answers
604 views

How to properly redirect SEO from an old domain to a new one - should I display a message first?

I have a domain, lets say example.com. I am rebranding the website and moving to example2.com. The example.com domain is well positioned in Google. How do I keep this Google position, or how do I harm ...
1
vote
2answers
753 views

Googlebot flooding server with requests for junk URLs with random data

I'm having some trouble with GoogleBot. It keeps requesting a random URL that doesn't exist. It is trying to access:www.example.com/index.php/{TOKEN} That {TOKEN} is really random, no idea where it ...
2
votes
2answers
61 views

How to find out the domains that 301 redirect to my website?

How can I find out what domains are 301 redirected to my website? For example if a.com, b.com, and c.com are 301 redirected to my website, then how can I know the list of a.com, b.com, and c.com?
1
vote
1answer
41 views

dynamics urls - redirects or rewrite and page SERP position

I'm trying to get my head on this, our site have thousands of links, is an e-commerce site, where products titles require changes on regular basis to get the best of SEO... you know, as usual, we ...
2
votes
1answer
2k views

Redirecting with Namecheap removes the path and sends all URLs to the home page

I'm having trouble redirecting www to non-www links using Namecheap. I added a URL Redirect Record with a host of www and a value of http://example.com which works fine for the main (and mostly only ...
1
vote
1answer
908 views

Do you need to add 301 redirect rules into robots.txt for search engines when you specify them in .htaccess?

Do I need to add 301 redirects to the robots.txt file? I will be adding the redirects to the .htaccess file, but not sure if the search engines need them in the robots.txt file as well to prevent any ...
1
vote
3answers
217 views

During a website redesign, how will removing unused pages/URLs affect SEO ranking?

I have been designing a new company website on Wordpress. Its design and content is all entirely different from the old site. The old site was quite confusing, organizationally speaking, with lots of ...
1
vote
2answers
546 views

how to use .htaccess to redirect http to https for 3 domains cPanel

I have 3 domains. 2 are Addon domains, 1 primary on my cPanel. I do not know if this is possible but from .htaccess how can I set this up: example1.com (Primary) example2.com example3.com This is ...
1
vote
0answers
20 views

Old Mobile site redundant now main site is responsive

I have an old site which has a mobile.example.com, I finally got around to updating the main site to a responsive version that means the old mobile site is no longer needed. However I am not sure if ...
1
vote
1answer
150 views

301 redirect for new domain whilst maintaining page paths for WordPress site

My client has a WordPress site which is hosted on a CPanel Linux server. Their old URL is https://old-example.co.uk. Their new URL is https://new-example.co.uk. Both URLs are pointing to the same ...
1
vote
1answer
54 views

Which is better for SEO, redirecting to specific page or home page?

I have two websites: www.mainwebsite.com and www.otherwebsite.com, but the latter will no longer be used so I'd like to redirect it. In www.mainwebsite.com, I have a page www.mainwebsite.com/other ...
3
votes
1answer
86 views

Which redirect directive with Apache chooose to use among duplicates?

We are using Apache server with a .config file to do permanent 301 redirects. The web site is mostly maintained and content is provided by the client. This particular web site changes very often, and ...