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.
14
votes
4answers
28k 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 ...
11
votes
5answers
423 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
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 ...
10
votes
4answers
723 views
ecommerce item deleted by user, 301 rediret to HOME PAGE or 404 not found?
I know this question is someway similar to this one where they reccomend using 404, but after reading this other one where they suggest to use 301 when changing site urls (in the specific case was due ...
9
votes
2answers
235 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 ...
9
votes
2answers
566 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 ...
7
votes
4answers
410 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
1answer
597 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
2answers
779 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 ...
7
votes
4answers
3k 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
3answers
3k views
How does redirects 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
2answers
240 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
226 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
535 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
1answer
7k 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 ...
6
votes
3answers
701 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
3answers
290 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
76 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
3answers
1k views
Force 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: ...
5
votes
2answers
140 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
194 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 ...
5
votes
2answers
2k 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 ...
5
votes
1answer
147 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
477 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.
...
5
votes
2answers
199 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 ...
5
votes
1answer
1k 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 ...
5
votes
2answers
606 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
403 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 ...
4
votes
3answers
1k 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
187 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
246 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
185 views
Redirect page to symlink
So I have 2 URLs that basically link to the main url using a symlink
maindomain.com
englishdomain.com -> symlink to maindomain.com
frenchdomain.com - > symlink to maindomain.com/fr
...
4
votes
1answer
164 views
Google Indexing URL that is a 301 redirect
My website URL structure is:
http://www.website.com/{record-type}/{record-id}/{human-readable-name}
If an invalid human readable name is provided, the page 301 redirects to the correct URL.
I've ...
4
votes
1answer
264 views
Hosting multiple sites - Mask URL?
I have a hosting account where I have my main site (www.mainsite.com points to root folder), and a subfolder xpto.com, where I want to have another site (www.xpto.com).
I can access ...
4
votes
1answer
649 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 ...
4
votes
4answers
521 views
Is there an easier way to implement 301 redirects when converting a site to WordPress
I have just converted a website to WordPress. The old site has hundreds of hard-coded html files, and the new site does not match the old site's directory structure or file naming system (bad SEO in ...
4
votes
1answer
286 views
I have an old domain that I'm retiring. How do I set up a permanent redirect from the old domain to the new one?
I originally posted this as one of the defining questions for the site so I thought I'd ask it again.
Currently I have DNS for both domains pointing to the same place but I'd like to set up a ...
4
votes
1answer
925 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 ...
4
votes
2answers
131 views
Index a 301 Redirect to help a user locate a page
On a site I'm currently working on, there is a 301 Redirect to redirect a nice short URL for users to type in when trying to find a particular piece of content - e.g. www.mydomain.com/apply -> ...
4
votes
1answer
338 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 ...
4
votes
1answer
250 views
Domain forwarding to a IE “trusted site” opens a blank page
My employer, a University, regularly hosts conferences and other events. While websites for these sites are hosted on our domain, they frequently request customized .com urls. We then forward these ...
4
votes
2answers
2k views
How to redirect calls from http://svn.example.com to http://dev.example.com:8443?
How to redirect calls from http://svn.example.com to http://dev.example.com:8443?
Should I be asking our Cisco networking guy to set this up (and if so, what do I tell him to do?), or should I be ...
4
votes
0answers
15 views
Impact on social interactions after URL change [duplicate]
Every article URL on a website I work on will soon be changed.
301 redirects will be set up to ensure inbound links still arrive at the correct destination.
However, social interactions (Likes and ...
4
votes
1answer
135 views
How to externally host a mobile website?
I've built a cool mobile website/app using JQuery Mobile. I want to offer that to clients, but I want to use my own hosting.
Here's what I want to do
If a user uses a mobile device to visit ...
4
votes
3answers
285 views
How to handle URLs with diacritic characters
I am wondering how to handle URLs which correspond to strings containing diacritic (á, ǚ, ´...). I believe what we're seeing mostly are URLs where diacritic characters where converted to their closest ...
3
votes
4answers
2k 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:
http://mypage.com/myfolder/page.apsx
The new structure is:
...
3
votes
3answers
82 views
I want to consolidate two sites into a third. Will my search engine rankings be penalized if I rewrite and redirect pages one by one?
I have two Drupal sites with different content-- let's call them Apple and Orange. I recently developed a much more sophisticated third Drupal site-- let's call it Tree. For a large number of ...
3
votes
3answers
481 views
Why can't GoogleBot forget a 404 File Does Not Exist?
For two months now, googlebot is trying to get a file which does not exist anymore. This is just one example out of many: I had renamed the file to a better name and removed the old file. Now, why ...
3
votes
2answers
77 views
SEO on my website
I have a website that I made for a friend who runs his own business.
I designed and built the website for him and then hosted it on MY hosting package and URL - Lets call this URL 1.
He was happy ...
3
votes
2answers
99 views
How can I find the number of users who visit my site via a redirect?
My domain foo.com redirects (via a permanent 301) to bar.com. I want to know how many visitors to bar.com come from having first visited foo.com.
I'm using Woopra - originally, I thought the ...