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.

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
766 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
18 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 ...
2
votes
1answer
229 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
334 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
540 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
486 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
417 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
49 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
66 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
53 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
42 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
159 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
6answers
219 views

Should my users' profile page URL be /user/bob or just /bob?

Currently, the URL to a user's page is this: website.com/user/bob But I'm considering changing this to be: website.com/bob Without the /user/ part. It comes across as much cleaner and easier to ...
4
votes
1answer
414 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/ ...
5
votes
3answers
516 views

Temporarily redirect WordPress url with query string from root directory to new url

This post seems to have my answer: How can I redirect old WordPress URL (with a query string) to new URL using .htaccess? However, this does not seem to play nicely with WordPress' previous rewrite ...
2
votes
1answer
43 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
743 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
1answer
194 views

Moving product website to company subdomain without losing SEO rankings

I manage a website related to a product, let's say www.product.com. The company used for years its company domain (let's say "www.company.com") as a redirect to www.product.com. Now we need to ...
1
vote
0answers
119 views

Months after implementing 301 redirects to a new domain name, the old domain still appears in Google but with snippets from the new domain

Background I had a single domain with 2000+ articles on a wide range of topics. For several reasons, I decided to split this site into several smaller, distinct sites, each on a separate domain name. ...
2
votes
0answers
51 views

though 301 website redirect from .de to .com, google indexes .de Website

I had a website example.de . Than I changed the domain with example.com . I added example.com also in google search console and than I did every steps in https://support.google.com/webmasters/answer/...
5
votes
2answers
344 views

When the root URL of a domain doesn't have a specific site, how should visitors be directed to language folders?

My question is not technical (how to do it using X technology), it's about choosing proper approach that is good for SEO. Description Let's say I have a website example.com. It's a multilingual site,...
1
vote
1answer
33 views

What could cause my site to redirect to its IP address using Apache2?

I've been playing around with various web configurations in Debian for about a year now. I've set up DNS for a fow domains in the process and have never really had an issue. I: Go to Google domains ...
1
vote
1answer
865 views

Why is my domain redirecting to a sponsored ads page when hosted by 123-reg?

I recently purchased a domain from 123-reg and am hosting the site on pythonanywhere.com I tried to redirect the non-www domain to a www domain using the methods 123-reg specified but it resulted in ...
1
vote
0answers
229 views

Correct way to redirect from HTTP domain to a different HTTPS domain on the same server?

Hello I have two different domain names pointing to the same server (same IP in DNS records). One domain (example1.com) has SSL enabled and has a fully working website on it. The other domain's (...
1
vote
1answer
44 views

Google search console reports redirects from my preferred www setting (Canonicalization seems to be working backwards?)

I have two variations of my domain on webmasters. One is http://www and the other is non-www. I have set my preferred domain to be non-www. I have used the function "Fetch as Google" and have had ...
2
votes
1answer
266 views

Is it OK for SEO to send a 200 status when I'm actually rewriting the request to a controller and then outputting content to a page dynamically?

After reading endless pages about redirects and best practice, I'm still unsure if what I'm doing here is good, bad, or indifferent as far as SEO is concerned. I have a table in a database that holds ...
2
votes
1answer
345 views

My website keeps redirect to the “index.php” account on Instagram app

My htaccess code allows example.com/username redirect to any username on Instagram app. But when I open example.com it redirects to an Instagram account called index.php. How can I fix it? Here is my ...
2
votes
1answer
596 views

How can I redirect example.com/username to Instagram app directly open from deep link?

I'm trying to redirect from example.com/username​ to Instagram deep link instagram://user?username=anyusername Here is my htaccess code RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(www\...
1
vote
1answer
36 views

Changing domain through 301 redirects - will I lose ranking position?

I have a few articles that are in the top 3 of Google search results. They are currently accessed by the URL http://example.com/myarticle1. Now, I want to move that article to the other URL http://...
1
vote
1answer
61 views

Address Bar and Google Search lead to different websites for the same URL

How is it possible that the same URL, when typed in the address bar, leads to a different website, when searched for in Google leads to a different one? Example: If you type in mdgpartners.com in ...
1
vote
1answer
34 views

We have two domains with links pointing into both. Right now one 301 redirects to the other. What should I do for SEO?

We have a web site example.com and domain example.org which is 301 redirecting to example.com. Both of these domain names are promoted in web. Because redirection is badly affecting SEO, instead of ...
2
votes
1answer
181 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 ...
2
votes
0answers
520 views

Redirecting domains, sub domains and single pages on Siteground

I'm having serious issues with Siteground to get my redirects working. They did work on another hoster so it is possible. However, that server configuration was very different so I cannot copy what we ...
1
vote
1answer
51 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 ...
3
votes
2answers
1k views

How to implement WordPress in a subdirectory, hosted on a different server?

I am working with a client who already has a custom e-commerce website set up at their own domain e.g. example.com We want to host their WordPress blog at a subdirectory of their domain e.g. example....
1
vote
2answers
44 views

How do I create 301 redirections for changed permalinks

I recently learned that the default WP permalink with post date is not SEO friendly. So I had to change the links for all 270 posts on my blog. However, the old links still display on Google search ...
2
votes
0answers
86 views

.htaccess to show a page from the main site on another domain

I have 2 x domain names https://www.example.com - This is my main site. http://www.example-liverpool.com This is my Liverpool sub website example.com/liverpool I've presently got URL forwarding ...
1
vote
3answers
89 views

When converting a WordPress site from HTTP to HTTPS, do all hard-coded HTTP references need to be updated?

We have a Wordpress HTTP site which we wish to convert to HTTPS or SSL. Do we have to find all mentions of hard coded HTTP resources or can we simply do a 301 redirect in .htaccess, and how do we do ...
2
votes
1answer
334 views

2 websites same company- different countries. How to set up?

My friend is selling his niche product in the US, and myself will do the same here in Australia. We will have 2 websites almost identical and we are thinking of linking to each other on our websites, ...
1
vote
2answers
40 views

Should a development domain that is indexed better than the real domain be deleted or redirected if I want to re-use it later?

I am a Web Developer and now almost nothing about server management. I setup a test server for one of our project at mypersonaldomain.com so that I would have a permanent URL to send to my coworkers ...
0
votes
1answer
261 views

.htaccess redirect based HTTP_REFERER [closed]

Our webpage was redesigned and moved to a web CMS platform. This means some of our blog posts shared via Twitter just link to a 404 page. I am wondering if it is possible using .htaccess or something ...
1
vote
1answer
895 views

.htaccess doesn't redirect my pages from HTTP to HTTPS

It seems like .htaccess doesn't redirect my pages from http to https. My domain is redirected to https but not my pages… Can it be a bad configuration from my web host? Here is what I have done ...
3
votes
1answer
237 views

Redirect first time visitors to an introduction page without getting penalized by Google

I am working with a client that wants an automatic redirect to a special "intro" page for first-time visitors to his site. We are using a website builder platform that does not allow any access to the ...