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.

Filter by
Sorted by
Tagged with
5 votes
1 answer
4k 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 ...
9 votes
3 answers
6k views

Are drops in Google ranking common after switching to https?

About a week ago I made the switch to https on one of my sites. I'm positive I did everything right. Properly setup 301 redirects from http to https versions. Added and verified https version in ...
user avatar
  • 93
125 votes
5 answers
238k 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 ...
user avatar
  • 1,441
4 votes
2 answers
5k 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://...
user avatar
16 votes
4 answers
1k views

ecommerce item deleted by user, 301 redirect to HOME PAGE or 404 not found?

I know this question is someway similar to this one where they recommend using 404, but after reading this other one where they suggest to use 301 when changing site URLs (in the specific case was due ...
user avatar
  • 6,360
5 votes
1 answer
125 views

Can you use an external 301 redirect for a blog post hosted on wordpress.com?

My friend has a WordPress blog and he wants to move some of the posts to another site. I suggested that he install a redirect plugin to do so. He wrote back: I think the plugin you offered ...
user avatar
14 votes
6 answers
8k views

Forcing SSL and www in .htaccess

I'm looking for a way to force SSL and www. I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: ...
user avatar
  • 243
15 votes
2 answers
3k views

Is it better to have an ErrorDocument 404 redirect back to the homepage or a standard 404 error page?

We run an ecommerce site that was setup by a third party ecommerce software provider, basic shop with product pages, basket and checkout. The third party vendor set up the htaccess file so that if a ...
user avatar
8 votes
2 answers
1k 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,...
user avatar
  • 83
3 votes
4 answers
1k views

Redirect everything from old domain to new domain

I need to (permanent) redirect all of the following: www.example.com www.example.com/folder sub.example.com sub.example.com/folder Basically, all URLs that are reachable without being intended to: ...
user avatar
  • 81
7 votes
3 answers
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/. ...
user avatar
  • 173
2 votes
1 answer
741 views

What should I do with a ton of alternate domains? Redirect or use landing pages?

We have a ton of alternate domain names. What is the best strategy as far as SEO strategy is concerned? Do we want to 301 redirect them all to our primary domain or set up simple landing pages that ...
user avatar
  • 133
6 votes
2 answers
218 views

Switching to HTTPS - redirect question

Following the recent Google announcements about improved ranking for sites running on https we have a number of clients asking about this. Is it safe to just 301 redirect all pages to their SSL ...
user avatar
  • 319
5 votes
3 answers
76 views

Best way of showing updated/new year related content

I have a website that shows data that only valid for one year, but like to keep the date for archive and compare purposes. For now I have a 301 redirect (so the other redirecting domains will always ...
user avatar
  • 51
4 votes
1 answer
3k views

Naked domain to "www" redirect in Windows Server 2008

I have a Windows server. I have several websites hosted on my server. Currently, I can only visit these websites if I include "www" (e.g., www.techtint.com). I want the naked form of the URL to ...
user avatar
28 votes
4 answers
71k views

Is there any way to redirect one domain to another via DNS settings keeping the path information?

For example, my domain is example.com and when someone navigates to example.com/sample/page.htm, I want it to redirect to test.com/sample/page.htm. I know that this can probably easily be done using ...
user avatar
  • 825
8 votes
3 answers
4k views

How do I temporarily disable a website?

I have to take a website down for a month, which is the least intrusive way to keep achieved SEO optimizations? should I just add in apache config: <Directory /root-directory-of-web-site-to-be-...
user avatar
  • 233
6 votes
3 answers
3k views

Redirect based on country

Let's say I have a site that has multiple versions for different countries, e.g.: www.example.com/us www.example.com/uk www.example.com/ca and I want to use IP geolocation to redirect users who go ...
user avatar
4 votes
1 answer
12k views

How do I determine if a redirection was due to DNS or the webserver?

I had an issue this week where the webhost altered my DNS settings, but the website, whether I typed in example.com or www.example.com would always resolve to www.www.example.com and I couldn't figure ...
user avatar
15 votes
2 answers
2k views

Proper status code for language redirection (301, 302, … 307)?

I have build a websites with multiple languages. The URLs look like: http://www.example.com/en/ http://www.example.com/de/ If the user access the main domain http://www.example.com/ the web server ...
user avatar
  • 463
7 votes
1 answer
4k views

redirect various http domains to certain https domain via htaccess

I have a bunch of domain names with different TLDs. What I want is to point several domains to the "main"-domain which has a SSL cert (single domain). Like this: https://example.com (main ...
user avatar
6 votes
2 answers
7k views

What is domain "masking" or "cloaking"? Why should it be avoided for a new web site?

What exactly is the domain name "masking" or "cloaking" offered by some hosting companies, (as opposed to redirection), and what are the various reasons it should be avoided when setting up a new web ...
user avatar
  • 3,723
6 votes
1 answer
3k views

Redirect from SSL HTTPS to HTTP (NO SSL)

Many of my visitors have bookmarked my site already with https://mydomain.com. Under the bad advice of a programmer I have put my whole site (Joomla) using SSL. I do not sell anything or provide any ...
user avatar
4 votes
3 answers
3k views

SEO: Will Multiple Redirects (301, Permalink Plugin) affect ranking

I asked for help over at WordPress Answers StackExchange for doing a 301 Redirect for my website, which will involve a permalink structure change also. One of the suggested solutions was 301 Redirect ...
user avatar
3 votes
1 answer
4k views

How to Redirect Pages with Query String?

I want to Redirect as seen below: https://example.com/p1/p2?sort=p.model&order=ASC&page=2 to https://example.com/p3/p4?sort=p.model&order=ASC&page=2 Also, I have this code in my ....
user avatar
3 votes
1 answer
202 views

.htaccess Redirect Old Threads

I have moved to mybb to vanilla and want to redirect old threads to the new format, so the indexed threads on Google aren't lost. The old format is showthread.php?tid=3003 Whereas the new format is ...
user avatar
  • 351
3 votes
1 answer
6k 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/...
user avatar
1 vote
1 answer
581 views

Do we have any redirect solution for all of subURL?

Suppose I redirect exmpale0.com to example1.com , example1.com is newer. Already , I promoted my exmpale0.com into social networks , Suppose I had: http://example0.com/blahblah Now I have ‍http://...
user avatar
8 votes
3 answers
720 views

Will redirecting expired domains to my website help or attract penalties?

I am developing a entertainment website and have found more than 4 entertainment domains (expired domains). Domain authority of these domains are 25 or more. If I will redirect these domain to my ...
user avatar
7 votes
3 answers
1k views

How to submit shortened URLs to Google so that they are included in the index

I am working on a project to create a URL shortener. I have successfully gotten it to create short URLs, but I would like to submit them to Google. When I submit a short URL via Google Webmaster ...
user avatar
4 votes
3 answers
4k views

Subfolder won't permenantly redirect to subdomain

Right now I have the following code to redirect all non-www URLs to www URLs: RewriteCond %{HTTP_HOST} ^example.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] Besides that redirection, I ...
user avatar
4 votes
3 answers
8k views

HTTPS and HTTP URLs point to different places?

I own and use a domain for a project. When I type in my domain preceeded by HTTPS instead of HTTP, I am re-directed to a compromising website. How is this possible? Did somebody buy the HTTPS ...
user avatar
  • 41
4 votes
1 answer
1k views

redirecting openshift rhcloud domain to custom domain for SEO purposes

Openshift application url: example.rhcloud.com Custom domain: example.com I came across this link and added the redirection rule. However, I can not access example.rhcloud.com now. My custom domain ...
user avatar
3 votes
1 answer
2k views

Should I change the URLs in the XML sitemap after 301 redirecting them?

I am using 301 redirects for all URLs. Should I change sitemap URLs now? The sitemap currently contains the following URLs: example.com/cat/1.html example.com/cat/2.html example.com/cat/3.html ...
user avatar
  • 143
3 votes
2 answers
4k views

Redirect URL ending with dot

I submitted my site's URL to my workplace's printed newsletter and when I get the printed version, they added a dot to the end of it. Some people will realize that the period is not a part of the URL ...
user avatar
  • 133
2 votes
1 answer
461 views

How do I map a (keyword rich) domain name to an existing website?

I am not experienced technical person, and still learning but will try to explain what I have done so far and what my query is. I have a (hypothetical) domain az-studios.com On that domain I have 3 ...
user avatar
2 votes
2 answers
364 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,...
user avatar
2 votes
2 answers
770 views

How do I use a htaccess redirect to force www and use the .org domain while maintaining the URL path?

I have found this rule that does about 90% of what I want, but not quite everything. My main goals for the redirect are to 1) force www. 2) redirect .com to .org. This does that, but if I were at www....
user avatar
  • 23
2 votes
1 answer
701 views

Duplicated content www on subdomain and SSL

I have a eCommerce based on OpenCart, but I was wondering about change my domain name for SEO purposes. For me the critical thing about my changes are the imminent possibility of domain change, I'm ...
user avatar
2 votes
1 answer
2k views

Can I track referral traffic in Google Analytics from a domain that is redirecting to my site?

We have two domains such that www.example.org is redirecting to www.example.com. We want to track how many times someone gets to example.com from the example.org redirect. How can do do this in ...
user avatar
1 vote
4 answers
2k views

Using a .htaccess to RewriteRule and Redirect 301 at the same time?

I have a couple of specific URLs that I want to display differently on my website, like this: RewriteRule ^contact$ contact.php To get ride of the ".php" extension. And to be SEO friendly (to avoid ...
user avatar
1 vote
0 answers
70 views

301 redirect a subdomain and all its variants (https, www, etc) [closed]

I want to redirect 301 from abc.example.com to example.com/abc.html page. I would like to include all variants of the subdomain in the redirect, like abc.example.com www.abc.example.com https://www....
user avatar
1 vote
1 answer
990 views

Redirect http www and non-SSL domains to HTTPS without multiple redirects?

I'm losing link juice in multiple redirects. I need to redirect all domain versions to my default domain i.e. https://example.com By all domain versions I mean http://www, http://, https://www and ...
user avatar
1 vote
1 answer
1k views

When using a framed redirect, which site does Google attribute content to for SEO purposes?

I want to setup a WordPress blog on blog.example.com. After that, I want to also show this blog in blog.example2.com using an <iframe>. Will Googlebot collect my blog information under ...
user avatar
  • 27
1 vote
1 answer
957 views

301 redirect blogspot to an existing domain?

Is it possible to redirect a blogspot site to an existing URL? Note that I don't want to buy a new domain and tell blogspot to use that, eg as per this question: How to have a blogspot blog in my ...
user avatar
  • 133
5 votes
4 answers
18k views

What's the best way to redirect from domain to subdomain?

I want to install my new site content on a subdomain like subdir.mydomainsite.com instead of the root domain. This is a new domain and not previous content to redirect. The root URL will be empty ...
user avatar
  • 81
5 votes
3 answers
58k views

Difference between forwarding and redirecting in GoDaddy?

I have a GoDaddy account with a domain and hosting, and I see that I can forward the subdomains in https://dcc.godaddy.com/ or redirect subdomains in Hosting->Settings->"URL Redirects". What's the ...
user avatar
2 votes
2 answers
31k views

.htaccess language redirects with SEO-friendly URLs

How do I setup my .htaccess file to detect several languages, and redirect them to specific SEO-friendly URLs? Basically every URL needs to go to index.php?lang=(...). So, for English language ...
user avatar
7 votes
3 answers
5k views

Would redirecting to a new home page affect SEO?

I'm currently working on a new landing page for this site. I want the landing page to replace the existing front page of the site. However I don't want to lose the Page Rank of the current front page -...
user avatar
  • 183
6 votes
2 answers
3k views

Multiple sites redirected to one main site

I have a client who insists of having multiple website domains all being redirected to one main website domain. It is getting out of hand and his server has become conveluted and riddled with garbage ...
user avatar
  • 163