Stack Exchange Network

Stack Exchange network consists of 175 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
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 ...
0
votes
0answers
33 views

How to Redirect 301 from old domain to new domain without lose seo [on hold]

I make a new domain and i transport my wordprees website to the new domain. i want to use redirect 301 and then, change address from search console. but i have some trouble. i have tried some ...
1
vote
1answer
22 views

Redirect to homepage based on server error code with htaccess

I just took over management of a small HTML website. I discovered the security on the website was almost non-existent because full directory browsing was possible. I have since disabled directory ...
7
votes
3answers
4k views

.htaccess permanent redirect to www

I have a WordPress installation that is not redirecting URLs not starting with www. Example: http://example.com/dir/ doesn't send to http://www.example.com/dir/ instead goes to http://example.com/. ...
1
vote
1answer
29 views

Migrating out of Medium

I'm moving my company's blog out of Medium to a subdirectory of our domain name. We have three blogs, one on a subdomain (when Medium still allowed it) and two as regular Medium organization blogs. ...
5
votes
2answers
369 views

Implement lots of redirects (a million) without slowing down the site

What's the best way to redirect 1,000,000 unique URLs to another 1,000,000 unique URLs? These pages are all combinations of multiple search filters and queries. We're migrating the site to cleaner ...
0
votes
0answers
16 views

Implement 2000 redirects in an SEO friendly way without slowing the site down [duplicate]

I currently have two e-commerce websites, a new one, built on WooCommerce with ~1700 products and an old one, custom built with ~2100 products. I want to delete the old one and use it's domain and ...
1
vote
1answer
28 views

How to redirect from blog.example.org to example.com using htaccess

I have tried all means to do a 301 redirect from blog.example.org to https://www.example.com/post using .htaccess but the redirect doesn't seem to be working. I'm using this code below; ...
-1
votes
1answer
32 views

Redirect a Wordpress site to a non wordpress site with a different domain name and hosted in a different server

I have my old Wordpress site . Now I have developed a new custom HTML site to and hosted it in another server with a different domain name. All the pages in the existing site is present in the new ...
1
vote
2answers
28 views

Show categories both on homepage and on categories page?

I'm creating a "directory" website that has many pages, each belongs to a category and a sub-category. I have category pages that will list all the pages that belong to the categories. Example: ...
4
votes
2answers
569 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 ...
4
votes
2answers
300 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 ...
1
vote
1answer
19 views

How to point a subdirectory URL of a static website to a Heroku app?

I have a static website, hosted on BlueHost and a React/Express app hosted on Heroku. I was wondering if it is possible to do something like this. Access static site with: staticsite.com Access ...
1
vote
2answers
8k views

“Too many redirects” from webpage made with Namecheap and github hosting

I have set up my first small static webpage using Namecheap and Github for hosting: http://www.keithgardner.me The webpage has typically loaded fine on Mac computers and iOS devices. I noticed ...
0
votes
1answer
27 views

How does CloudFlare Handle JS Redirects?

I need to implement a couple Javascript redirects using window.location on my site. This redirect fires in very specific circumstances and I don't want that redirect cached. I found info about how ...
0
votes
0answers
39 views

How do I redirect a subdomain on Google domains to a URL with masking?

I bought a domain (on Google Domains) for a personal webpage and set it up to point to my github.io page I also added a subdomain (say somefile.mydomain.example) and it now redirects to a Google ...
1
vote
2answers
51 views

I have a page with two domains and I want to redirect one of the domains to a specific page via htaccess

I am using the domains ergonomi.example and fysiarbejdsliv.example I want fysiarbejdsliv.example to redirect to https://fysiarbejdsliv.example/dansk-selskab-for-fysioterapi-i-arbejdsliv. I have ...
0
votes
1answer
41 views

Simple redirection with countdown [closed]

I would like to redirect visitors to my new website. I would like to show a page where there is a countdown "you will be directed to the new site by 4..5..3..2..1 seconds" but I would like the user to ...
1
vote
0answers
38 views

How can I redirect a Blogger blog to another blog

I have a blogger blog with its own domain (I'll call it www.example.com); that's to say: this site used to be a www.example.blogspot.com and I purchased a name domain later; I can continue to manage ...
0
votes
2answers
1k views

Where to place 301 redirects in the .htaccess file on a WordPress site

I edited my .htaccess file earlier to redirect from www version to non-www, and it is working correctly. However, now I have some page redirects I need to do. I am looking at the .htaccess file, and I ...
0
votes
0answers
26 views

Redirect IP address to Domain Name in Amazon Web Services EC2

I have just set up a WordPress website using this tutorial. The site can be accessed via domain name as well as IP address. This doesn't look good and I would like the IP to direct to the domain name ...
2
votes
0answers
33 views

Squarespace removes UTM query variables when redirecting from non-www to www

I'm setting up some redirects for a client's blog, pointing the old URLs to their new Squarespace site. Curiously, I noticed some of URL tracking variables were being stripped out during the redirect....
1
vote
1answer
51 views

Redirecting 404 pages to another active pages in .htaccess

I have one product page indexed on Google but that link does not exist anymore and hits 404 page. What I want to do is to redirect that link in .htaccess to another product page since it ranks very ...
0
votes
1answer
27 views

How to detect what is causing a redirect?

I am working on a Wordpress website that has been hacked. Let's say that it's http://thewebsite.example. There is no malware that infects people that open this website, but there is a URL http://...
2
votes
1answer
51 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 ...
1
vote
1answer
28 views

Which redirect code to use for resolve resource?

On my website i have a list of items, each item has a link, the link has one parameter named "ID": <a href="go?id=2">item</a> When i generate the list i don't know the exact url to the ...
1
vote
1answer
47 views

How to redirect dynamically generated duplicate pages in .htaccess?

I have over 2000 dynamically generated duplicated pages like this: https://www.example.com/subfolder/page1.html and https://www.example.com/subfolder/page1/ What i am trying to do is redirect all /...
2
votes
1answer
21 views

How to form redirect or rewrite where query string contains portion I want to extract to new query string

I've transferred an old custom-made site to Mediawiki and I have many internal and external links to my old pages that I want to redirect to the appropriate wiki page. There are many links to the ...
1
vote
1answer
24 views

.htaccess: Redirect all HTTPS to a subdomain, but EXCLUDE one subdomain folder

In summary: (Notice the "https") I have https://www.example.com All need to be re-directed to https://sub.example.com EXCEPT https://xyz.example.com/api Here is my current .htaccess: ...
2
votes
1answer
60 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 ...
114
votes
5answers
200k views

Moving from HTTP to HTTPS in Google Search Console

I'm moving from HTTP to HTTPS for my entire site. The site is currently added to Google Search Console (formerly Google Webmaster Tools) as www.example.com and all the pages are indexed without using ...
1
vote
1answer
53 views

Adding a subdirectory to a URL using .htaccess

I am trying to achieve the following: This URL: www.example.com/wis/9-3/1998/0.general Redirected to this URL: www.example.com/9440/wis/9-3/1998/0.general So I'm trying to add this subdirectory to ...
0
votes
1answer
32 views

mod rewrite with two parameters and loading folder

I have domain example.com, when someone go to this domain, I need to automatically redirect to example.com/en/ and need /en/ to be a parameter of variable lang. RewriteCond %{REQUEST_FILENAME} !-d ...
2
votes
2answers
74 views

How would Google react if I redirected currently ranking landing pages to the home page?

I have some tag pages on my website which contain specific keywords. They appear in the Google search results for those keywords. Those pages bring in a fair amount of traffic but the bounce rate is ...
0
votes
1answer
51 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 ...
5
votes
1answer
80 views

When an attribute value ends in a slash, can I omit the quotes? It looks confusing when the trailing slash is next to the closing angle bracket

I have been thinking about this case: You want to use canonical on page A directing to example.com/: <link rel=canonical href=example.com/> If I wouldn't use quotation marks like that, could ...
2
votes
2answers
248 views

When changing domain names, can I keep my existing SEO and Google Search ranking?

Suppose I have been using a domain, say www.bollywoodhatke.com for 3 years, and it has a good Alexa (hypothetical situation). It has backlinks and its has 7,000 pages indexed and 50,000 images indexed,...
1
vote
1answer
81 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
33 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
24 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
20 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
30 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
115 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 ...
4
votes
1answer
40 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
77 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
34 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
2answers
52 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
39 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
16 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
41 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 ...