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.

learn more… | top users | synonyms (2)

25
votes
5answers
32k views

Moving from http to https - Google Search Console

I'm moving from HTTP to HTTPS for my entire site. The site is currently added to Google Webmaster Tools as www.example.com and all the pages are indexed without using SSL. How do I go about moving to ...
23
votes
4answers
54k 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 ...
15
votes
2answers
5k views

What are the Consequences for using Relative Location Headers?

According to the spec, Location headers used in a redirect require a server name HTTP/1.1 301 Moved Permanently ... Location: http://example.com/foo/baz/bar However, in 2012, most web browsers will ...
12
votes
4answers
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 ...
12
votes
2answers
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 ...
11
votes
5answers
491 views

“Thank you for posting. Please stand by while you are redirected.” Needed?

Thank you for posting. Please stand by while you are redirected. If you are not automatically redirected, please click here. You're probably familiar with messages like these, especially ...
10
votes
2answers
333 views

If I have a page that gets a lot of StumbleUpon traffic, will that traffic fall if I move it?

Say I have a page that gets a lot of traffic via StumbleUpon. It's an ancient page, and I might want to move it to another site as part reorganizing my old site. I intend to keep the content identical,...
10
votes
2answers
804 views

Homemade URL shortener redirect conflicting with 301 redirects

I have a website which was originally built using classic ASP. About a year ago it was rewritten in PHP. This caused file extensions to change and some pages were moved to new locations within the ...
9
votes
3answers
1k views

Can the files robots.txt and sitemap.xml be dynamic through an .htaccess redirect?

I have a multilanguage and multidomain site. It runs through a unique CMS installation (Drupal), so I have a single root directory. So if I have a static robots.txt, there I only can show the files ...
8
votes
3answers
850 views

Is it a problem (e.g. for Google) when my site has no root page?

I have a multi-lingual site, which contains languages in this manner: http://www.example.com/en/ http://www.example.com/de/ http://www.example.com/fr/ To avoid duplicate links, is it ok not to have ...
8
votes
3answers
380 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 ...
8
votes
2answers
618 views

Apache - How to NOT log 301 redirects

I recently re-designed my site and a lot of the URLs changed. I have already setup rewrite rules in Apache to redirect old URLs to the new URLs. That's all working. My question is, how can I get ...
8
votes
5answers
5k 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: ...
7
votes
7answers
2k views

Is there a safe way to redirect traffic from a dozen old websites to a new (unrelated) website?

Over the years I've built over a dozen unsuccessful sites. They get 10-100 visitors per day each. The topics include all kinds of random things - recipes, hiking tips, military equipment, gym bloopers,...
7
votes
2answers
1k 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-...
7
votes
5answers
1k views

Redirect visitors when site is too busy

We're expecting a large spike in traffic to our website this week. If the site becomes overloaded (i.e. visitors are getting a 503 error), I want to redirect visitors to another web address. How would ...
7
votes
4answers
454 views

Why do some webmasters avoid putting direct links on their pages?

I've seen this more than often in many websites, that the webmaster avoids putting direct links on the page, instead they use a redirect such as following: http://www.example.com/?url=http://sample....
7
votes
3answers
232 views

I want to test major changes on my website without hurting SEO

I want to replace all my website files for new ones on the server and to test if they work alright but I don't want to be crawled while this is happening or if I am, I don't want the crawler to be ...
7
votes
1answer
15k views

How can I redirect port 80 to a different port with Apache?

I have tomcat running on port 8080 and want a particular URL, lets say http://example.com/app, to actually point to example.com:8080/app I have other content on the website that should remain ...
7
votes
1answer
1k views

why is having no redirect between domain.com and www.domain.com wrong?

After asking this question: http://stackoverflow.com/questions/8042748/facebook-login-returns-error-message-if-domain-accessed-without-www-prefix I was told that using domain.com and www.domain.com ...
7
votes
3answers
1k views

When redirecting from http to https in a shop site, which status code should I use?

On a shop website, when "Pay now" is clicked we perform a header redirection to the same URL, just an SSL secured https version. In such a common scenario, should we use a permanent (301), a ...
7
votes
3answers
4k 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 -...
7
votes
4answers
6k views

Will Google Analytics track URLs that just redirect?

I have a link on my site. That links goes to another URL on my site. The code on the server sees that resource being requested and redirects the browser to another website. Will Google Analytics be ...
7
votes
2answers
554 views

Is having a landing page for multi-country websites detrimental for search engine ranking?

I have a multi-language / multi-country website which uses a single domain name. The url structure is as follows: country-name.example.com/language/ Ex: ca.example.com/en/ ca.example.com/fr/ uk....
7
votes
1answer
85 views

Redirecting from Wordpress.com site to Wordpress.org with SSL

I am in the process of transferring a Wordpress.com site to Wordpress.org. The old site domain: https://oldsite.wordpress.com. The new site domain: https://newsite.com. I am facing a dilemma on the ...
7
votes
3answers
272 views

How to re-direct Wordpress posts with 301

All my WordPress post URLs generate sub directories with duplicate content and I do not know what regular expression to use to consistently 301 redirect domain.com/category/post/random-number/ to ...
7
votes
2answers
803 views

How do you direct iPhone/Android browser to m.example.com?

I have some special coding that only works for HTML5 browsers (simple geolocation stuff). I want to redirect iPhone and Android users to the m.example.com version of my website. How is the best way ...
6
votes
3answers
1k views

Should I redirect desktop users visiting mobile page to desktop version?

So I am redirecting mobile users to mobile version of the page and also have alternate attrubute set up for that: <link rel="alternate" media="only screen and (max-width: 640px)" href="http://m....
6
votes
3answers
124 views

Will data be encrypted if an HTTP page POSTs to a HTTPS handler that redirects back to HTTP?

My host gave me a subdomain of their domain that has HTTPS: https://mysite.example.com My own domain name has no SSL installed, so the only way I can take advantage of encryption is by using the ...
6
votes
2answers
4k views

How can my site detect mobile phones and switch visitors to a mobile Domain?

My Question is that when user enter the website: http://www.example.com then they will just go to automatically to http://www.example.mobi how can i do this .. is their any technique behind that. ...
6
votes
3answers
3k 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/. ...
6
votes
2answers
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 ...
6
votes
2answers
2k views

Redirect/rewrite dynamic URL to sub-domain and create DNS for subdomain

I have created an application in PHP, I would like to re-direct the following URL to corresponding sub-domain. Dynamic URL pattern: http://mydomain.com/mypage.php?user_name=testuser I wish to re-...
6
votes
2answers
1k views

Does a 303 status code pass page rank?

I'm doing an audit for a client who has a 303 redirect on his site from: example.com to example.com/en/. I personally would have used a 301 redirect, but I want to know if a 303 passes page rank the ...
6
votes
2answers
373 views

URL strategy for multilingual website [duplicate]

Possible Duplicate: How can I get search engines to crawl my site and see a localised view of my data? I was wondering what would be the best URL strategy for a multilingual website (for an ...
6
votes
2answers
328 views

What kind of redirect (301 or 302) for an email links tracker?

We are developing an email sending application ("à la" Mailchimp). Hyperlinks inserted by our users, in the emails they want to send, are replaced by a tracking URL on our application (https://...
6
votes
1answer
3k views

.htaccess rule to redirect from 404 to search results

When a user (or a bot) request on non existing page, I want to redirect him to the search results. I prefere to do it with the .htaccess file using something like: ErrorDocument 404 /recherche?...
6
votes
1answer
111 views

301 redirect away from content that is served with a reverse proxy to prevent duplicate content

I am currently struggling to resolve an issue stemming from a reverse proxy. We are running a reverse proxy from page.example.com to example.com/page/ . This original subdomain content is generated ...
6
votes
2answers
4k views

Masking a redirection in IIS7

My tools: IIS7 1 x Windows 2008 Server IIS URL Rewrite Module 2 (installed) My requirement: Mask the redirection of www.bob.com to www.abc.com/bob/index.html - the end user should not see the ...
6
votes
2answers
886 views

Moving from Subdirectory to Subdomain structure

I have a website (powered by Rails/Postgres and nginx) where I had setup a blog and a coupons section as: http://examplecom/blog/ http://example.com/coupons/ Blog is powered by wordpress and ...
5
votes
2answers
200 views

We changed our URL and our impressions dropped almost 100%

The company I worked for changed their domain about a month ago and updated the URLs for all of the pages. We mostly removed the .aspx from the ends and decreased the depth of many of our pages. We ...
5
votes
2answers
270 views

Multiple top level domains - should I redirect/rewrite or leave them?

I have a website which has many top level domains e.g. mywebsite.com mywebsite.org mywebsite.co.uk mywebsite.org.uk The website is advertised as mywebsite.org.uk. But I expect lots of people will ...
5
votes
3answers
262 views

How do aliases or redirects work?

Is it possible that I set-up a redirect of my store which is located at www.xyz.com/store to store.xyz.com . Do i have to buy a new domain name or is there any other way.
5
votes
2answers
2k views

Using Google Webmaster Tools “change of address” feature for HTTP to HTTPS migration

I'm trying to use change of address in Google Webmaster Tools, and I've followed the instructions and set a 301 redirect for all requests to HTTPS. My site has always used HTTP with a 301 for no-www, ...
5
votes
1answer
267 views

Impact of dropping www from main URL on SEO

A client's website is currently at www.domain.com, with domain.com redirected there automatically. I've suggested that they reverse the redirection to drop the "www", so I can set up a subdomain that ...
5
votes
2answers
5k 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 ...
5
votes
1answer
92 views

Redirecting all child pages from subdomain

I can't get this redirect working... Can someone point me in the right direction please? On a WordPress site I want to prevent access to all pages that sit beneath a given parent page. All I want ...
5
votes
2answers
84 views

Is a masked 307 redirect for a domain possible?

I've been asked to create a 307 redirect for a domain, ensuring it is "masked". i.e. keep the original URL in the address bar. There isn't a lot of info available about 307 (as opposed to 301/302) ...
5
votes
1answer
11k views

How can I use .htaccess to rewrite different domains to different sub-directories, masking the sub-directory?

I have a shared hosting plan that allows unlimited addon domains, but they can only point to the public root (/). I use .htaccess to point different domains to their corresponding sub-directories. For ...
5
votes
1answer
721 views

Redirect URLs with a # in .htaccess

On one of my sites I get 404s because some scripts are fetching all URLs from the start page as raw URLs, so they include the # in the URL. Normal browsers don’t ever send that part to the server, but ...