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)

20
votes
4answers
44k 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 ...
13
votes
2answers
3k 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
965 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 ...
11
votes
2answers
2k 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
474 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
285 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 ...
10
votes
2answers
682 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 ...
8
votes
3answers
798 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
3k 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
4answers
445 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: ...
7
votes
2answers
213 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
10k 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
948 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
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
5k 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
470 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 ...
7
votes
3answers
260 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
672 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
908 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)" ...
6
votes
2answers
910 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 ...
6
votes
3answers
2k 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

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
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
3answers
614 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 ...
6
votes
2answers
733 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
340 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
213 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 ...
6
votes
1answer
2k 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 ...
6
votes
2answers
670 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://myrailsapp.com/blog/ http://myrailsapp.com/coupons/ Blog is powered by wordpress and ...
5
votes
2answers
172 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
186 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
1answer
203 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
1answer
7k 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
2answers
1k 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 ...
5
votes
2answers
399 views

To WWW or not to WWW

I'm getting ready to deploy my Rails app. Currently whether you browse to it using www.domain.com or just domain.com you get the same site. I'm pretty new at this, so I'm looking for some wisdom from ...
5
votes
1answer
1k 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 ...
5
votes
1answer
1k views

Moving from http to https - Google webmaster tools | Bing webmaster tools

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 ...
5
votes
3answers
371 views

Best way to redirect users back to the pretty URL who land on the _escaped_fragment_ one?

I am working on an AJAX site and have successfully implemented Google's AJAX recommendation by creating _escape_fragment_ versions of each page for it to index. Thus each page has 2 URLs: pretty: ...
5
votes
1answer
173 views

Will “jailing” a single page inside an iframe using a JavaScript redirect be considered as cloaking?

Background I have a website that uses iframes to display content. If the URL to a content is called directly by the user it should be "jailed" into the main page. The main page provides a header and a ...
5
votes
1answer
690 views

How can redirect pages from old core PHP site to new Joomla site?

We have our old site into core PHP and we have developed it again into Joomla 1.5 last year (because of some limitations we have to build it into 1.5). Now the problem is the URL of sites changed as ...
5
votes
2answers
2k 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 ...
4
votes
5answers
4k views

How can I force Google to re-index my site?

I changed the structure of my URLs. The pages are already indexed by Google and have the following structure: /myfolder/page.apsx The new structure is: /page.aspx Now all URLs that Google knows ...
4
votes
2answers
192 views

One million redirects

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 ...
4
votes
3answers
2k 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 ...
4
votes
2answers
91 views

RewriteRule with Query_String

I have http//royatlon.north.com/cybersource/fp/clear.png?org_id=1snn5n9w&amp;session_id=sterling40272003&amp;m=1 and I would like to rewrite it to this: ...
4
votes
2answers
364 views

302 & 503 for temporary site down page: what to use for 'retry-after'?

If I want to temporary take down a website but the timeframe could be from 1 day to 1-2 weeks, I know that a 302 redirect (to a down.html page for instance) is best in order to preserve the existing ...
4
votes
1answer
308 views

Redirecting a lot of pages to one page - Google rankings down the drain?

We have quite a successful site with high rankings on good keywords. Now the website is redesigned to a new one-page website. The keywords pointed to different pages from Google. What we've been ...
4
votes
2answers
2k views

Redirecting all subfolder url's to another domain

I have a domain that is domain.com/portfolio/some-url I would simply like to direct all traffic that would normally go to the subfolder /portfolio to a new domain: new-domain.com/ How would I do ...
4
votes
2answers
724 views

How to make so that a first domain name redirects to second one but the URL displays the first domain name?

I have first domain name registered with some domain name registrar, for which I don't have web hosting account, only dns hosting. I have second domain name registered with godaddy, with web hosting ...
4
votes
1answer
112 views

Should I redirect my domains to the same address?

If I own example.org, example.com, example.net, and want visiters to view the same site no matter what address they go to, should I redirect two of the addresses to the third, or simply serve up the ...