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.

1
vote
1answer
30 views

Redirect to remove everything after the second slash (first directory)

I'm trying to redirect a lot of pages on a website I own. There are a few pages indexed and I need to fix them for example: /vloerafwerking/projecttapijt/raamafwerking/ needs to go to /vloerafwerking/...
0
votes
0answers
28 views

.htaccess clean url to GET variable with WordPress

I'm struggling to get a .htaccess rule to work. I'm trying to cleanup a URL for a WordPress site. Instead of /illustration?rid=123, I'd like /illustration/123. I've tried solutions from many of the ...
0
votes
2answers
23 views

Page URL Modifications and Google response [duplicate]

I need to change the address of one of the pages of my site. I will create a new page with absolutely the same content and the same structure of the page (no changes to the content of the page at all, ...
0
votes
0answers
16 views

Redirect IP address to domain using .htaccess [duplicate]

I tried the following .htaccess code to redirect the IP address of my VPS server to my domain, but despite of all efforts it keeps resulting in a 404 error: RewriteEngine on RewriteCond %{HTTP_HOST} ^...
1
vote
2answers
26 views

How to preserve ALL website's URLS when transferring to a new CMS as well hosting

I am in a position where I have to figure out how to preserve all of the website's pages URLS when transferring it to a new CMS, perhaps potentially Joomla (hasn't been decided yet). New hosting is ...
3
votes
5answers
100 views

Is HTTP to HTTPS redirect required even if site is only on HTTPS?

I have a new website and from day one, it was on HTTPS. For example: https://www.example.com/ Do I still need to redirect HTTP to HTTPS to avoid content duplication? For example, should I still set ...
1
vote
1answer
45 views

Redirect from www and http to https doesn't work on sub-domains

I am trying to redirect all www and non-https requests to the HTTPS only versions with Apache server. I don't need or want www or non SSL URLs at all. The issue is that with the 2 different snippets ...
2
votes
1answer
30 views

Redirecting a user but not Googlebot to solve problem with iFrames in content

TLDR To work around a problem with a third party documentation writing software I need to redirect a page to another page but only if a user in browser is looking at it. I want the google bot to see ...
4
votes
1answer
39 views

What is the most SEO friendly way to redirect the main domain to different subdirectories?

I have a multilingual website (English / Hungarian). I need to redirect my domain (mysite.hu) to subdirectories (/hu, /en), based on chosen user language preference (the default is Hungarian). For ...
1
vote
1answer
32 views

Firebase redirects http to https with 307 code (Temporarily Moved), which is bad as per SEO. How to configure it to use 301 code (Permanently Moved)

My website is hosted with Firebase. It offers https out of the box. When a user hits http://example.com, it redirects to https://example.com with 307 code (Temporarily Moved). As per various SEO ...
1
vote
1answer
25 views

how to redirect lower case to upercase

I have a WordPress blog and I made subfolder like this https://example.com/Tourism but when I open this URL with lowercase "t" it shows me 404 not found error: https://example.com/tourism this ...
0
votes
1answer
45 views

HTTPS Re-directing

We built a site for a client to advertise a new block of apartments they had built. The apartments have now all been sold so we have been asked to forward the domain to another domain until there is ...
0
votes
2answers
48 views

301 redirect in the htaccess file issues

This is driving me crazy, can anybody tell me why this 301 redirect does not work. I just get a 404 error with the old /about page. Here is the code for info: {ENV:WPR_SSL}.html%{ENV:WPR_ENC}" -f ...
2
votes
1answer
37 views

Redirecting /page/*/ to the home page in .htaccess

My problem is that my homepage exists on https://www.example.com/page/2/, /3/, /4/ and so on, it still exists on /1000/. Same duplicate page versions exists on /about and and /contact page of my site. ...
0
votes
0answers
15 views

Website URL in YouTube 'about' page redirects to Spammy website

My wordpress website's URL that I added to my YouTube channel's 'About' page often redirects to some random spammy website. Would this be happening only for me or do my channel visitors also face ...
1
vote
2answers
39 views

What is the SEO impact of multiple redirects that return to the current page after setting a cookie?

We have a situation where we need to set a cookie on a user's session. In order to do this we currently have a series of redirects in place: Initial request > 30x to get the cookie > 30xset the ...
2
votes
1answer
55 views

http to https redirect triggers “Duplicate without user-selected canonical”

For some reason, my Main URL (https://www.foxteller.com) cannot be indexed because of my domain redirects in the apache2 config. My redirects go as follows: http://foxteller.com/ > https://www....
3
votes
0answers
41 views

Rendering Issue - Homepage

Recently, my client's hosting provider migrated http://kastenhandelaars.nl to http://indoorhomeline.nl. (both Wordpress websites) Appropriate redirects were placed and we changed the homepage. ...
2
votes
2answers
41 views

Do non-existent 'category' pages in URLs present a problem for search engines?

Say for example if I have a news site and my URL structure is: example.com/news/random-article If there is no page at example.com/news/, in other words it results in a 404 error, is that problematic ...
1
vote
1answer
45 views

Redirect to website with parameters - namecheap

I'm struggling to redirect using the namecheap dashboard. Specifically I want to redirect based parameter. So for example: mywebsite.com/2345 would redirect to otherwebsite.com/query?=2345 Is this ...
2
votes
0answers
313 views

Using Xenu's Link Sleuth to remove bad 301's / broken page-local links

I'm trying to fix 2 issues based on the report from Xenu's Link Sleuth. I have numerous 301 Redirects from Wordpress SQL based URLs despite using post name URLs. Despite using post name based URLs (...
5
votes
1answer
3k 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 ...
2
votes
2answers
527 views

Are click tracking redirects acceptable for SEO?

We're looking at using http://www.pardot.com/ to track certain links/buttons on our website. We can give users extra "points" for clicking those elements. A way to grade potential leads. In order to ...
2
votes
2answers
5k views

Site hosted with 1and1 redirects to defaultsite

I purchased Linux hosting from 1and1.com. I added a domain registered elsewhere as an external domain to my 1and1.com account. I changed the DNS settings. I set up a home page for my site. When I ...
1
vote
0answers
21 views

Yoast purge plugin caused crawl errors, getting more even after removing it

I'm using the Yoast SEO plugin on my WordPress site, and when you upload media to WordPress media library, it makes a copy of the image or file and creates a file path (this is normal). However, all ...
5
votes
3answers
464 views

301 redirects for /blog to blog subdomain not working

I just created a new subdomain for my blog so blog.example.com - it used to be www.example.com/blog so I am now trying to write 301 redirects from all my old /blog posts to the new blog.example.com ...
1
vote
1answer
36 views

Community homepage: domain root redirect to subpage for logged-in users bad for SEO?

I run a community website. I plan to distinguish between guests (wich also contains search engines) and logged-in users for the domain root, because logged-in uses should see an overview of new ...
1
vote
3answers
1k views

How do I force a www subdomain on both HTTPS and HTTP?

For whatever reason I can’t seem to get this right. I’ve looked at many examples on here and on the Apache website. I’m trying to force www.example.com instead of example.com on both HTTP and HTTPS, ...
4
votes
4answers
2k views

Should I redirect “ugly” URL to friendly URL?

I use mod_rewrite to rewrite https://example.com/?page=some-page&tab=2 to https://example.com/articles/some-page/2. But people can still access both URLs. I want to know: should I redirect the "...
0
votes
2answers
29 views

Do follow link redirection

I am new to SEO and using WordPress. I got a do-follow back link from a website. The link's structure was /2018/03/03/abc/. After that I changed the permalink structure. So the link became /abc and ...
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 ...
0
votes
1answer
21 views

My team wants to move news section of our website to subdomain [duplicate]

My team wants to move news section of our website to subdomain ex "news.website.com" does it affect SEO? Can anyone tell me pro and cons of this thing?
1
vote
0answers
21 views

Temporarily turn off redirects on all virtualhosts

Is there a configuration parameter I can set in the global configuration to disable redirects in all virtual hosts? I've got a server with a bunch of virtual hosts with varying configurations, many ...
3
votes
1answer
37 views

Should I submit the redirects in XML sitemaps in the old website search console?

I have redirected https://www.example.com to https://example.com. Should I exclude all the redirected pages of the first website in its own search console? For instance should I include https://www....
2
votes
1answer
17 views

When redirecting to another domain, to which domain will HSTS apply?

Assuming the following, what domain will be HSTS'ed for the next year, foo.com or bar.com? RTFM (RFC6797) doesn't help much. > GET / HTTP/1.1 > Host: foo.com [ ... ] < HTTP/1.1 301 Moved ...
3
votes
1answer
906 views

Redirect all pages within subdirectory to new page

After redoing my webshop, I need to redirect every URL within a certain directoy to a new page. All URLs beginning ith example.com/shop/... should be redirected to the page located at example.com/...
4
votes
2answers
506 views

How do I redirect Pages to the Subdomain with same URL Format?

How do I redirect Pages from the main site with 404 Status to the Subdomain with same URL Structure? This for example: https://www.example.com/rent this returns a 404 Error and must be redirected ...
1
vote
0answers
63 views

LinkedIn & Slack ignore translated meta tags

Our website is a WordPress site with 2 different languages. Original is German and we use Weglot plugin for translation into English. So the problem is that LinkedIn and Slack are picking the German ...
4
votes
2answers
276 views

I changed my domain name. How to keep my ranking and traffic?

Two weeks ago I changed my Blogger domain name from "energieshow.blogspot.com" to "lifeskills-coach.com". It works and redirects perfectly. But since I was afraid of losing my ranking and traffic in ...
4
votes
1answer
54 views

Reasons to use a custom 404 page that redirects with code vs a 301 redirect?

We are moving a website from Joomla to Mura and some of the pages are going to be located at different URLs. I can set up 301 redirects in the rules section of the web.config file in order to ...
4
votes
2answers
3k views

What causes “redirect notice” in Google search?

Occasionally, I get "Redirect Notice" pages when I click on Google search results. My website does have a landing page redirect, but no redirect notice shows up when I click on it in Google search. I ...
3
votes
1answer
39 views

If redirects for variations are in place, can I safely consolidate down to one Google Search Console property?

I am redirecting using .htaccess to always use www, always use HTTPS. At this point, can I remove the duplicate Google Search Console properties (non-www and http)?
0
votes
1answer
15 views

SEO when forward domain in global rank vs local region?

I have one .ir domain and google map services not works on .ir domains, I want to get .org domain and set SSL EV for this .org domain then forward .ir to .org domain. one web app is installed on this ...
1
vote
1answer
46 views

What's the SEO cost of rel=canonical references leading to redirects?

On www.ubuntu.com we recently started including rel="canonical" tags on every page by default, following Google's recommendation. However, as you can see on e.g. https://www.ubuntu.com/cloud, the ...
1
vote
1answer
32 views

Wordpress regular expression redirect with redirect plugin

I need to redirect all traffic for a suspended site and what I have tried so far is installing the redirect plugin and adding a redirect (tools->redirection->add new source: ^/(?!.*login.*|...
1
vote
1answer
24 views

.htaccess - redirect the contents of a subdirectory of old domain to new domain (WordPress) [duplicate]

I have problems with the redirection of my old website to our new website under a new domain. The old website was created with Wordpress and the simple redirect 301 was successful. However, some pages ...
1
vote
2answers
57 views

Does redirecting the client using the PHP header function always work in client's modern browsers?

I want to redirect users back to login page if they wrote the wrong password. I usually use header(location: "login.php?msg=wrong password"); when they type the wrong password or something. Does this ...
1
vote
3answers
747 views

web.config redirects only for specific domain

I'm stuck with redirecting for specific domains. The setup consists of azure webapps which bring their own domain *.azurewebsites.net, I want to exclude those from redirecting. For additional domains ...
5
votes
3answers
23k views

If I need to redirect my WordPress site to a new domain with new hosting, how do I do so?

I have a Wordpress web site but need to change the name (from abc.com to tty.com). I was planning on duplicating the old web site to the new site. I don't want the old url to die, just in case ...
1
vote
3answers
16k views

NginX redirect to PHP file if image does not exist on file server

This is what I am trying to do. I am not familiar with Nginx enough to create custom rewrite rules like you can with Apache. It would be greatly appreciated if someone could help me with the Nginx ...