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.

3
votes
2answers
920 views

Apache RewriteRule not redirecting

I have this in my .htaccess file: RewriteEngine on RewriteRule ^images/chart\.png$ /static/images/chart.png [L,R=301] RewriteRule ^images/artwork/(.+).png /static/artwork/$1.jpg [L,R=301] #...
2
votes
2answers
864 views

Google analytics and 301 redirects

We have a multilingual website and the first page redirects to specific language page using 301 redirect based on some logic. For example: http://mysite.com/ redirects to http://mysite.com/en/ The ...
2
votes
3answers
2k views

Google isn't indexing URLs after a redirect that differs only in percent-encoding/decoding?

Will Google's crawler refuse to follow redirects when the difference between the redirected-from and redirected-to URLs is solely whether specific characters are percent-encoded or not? For example: ...
3
votes
4answers
778 views

301 redirect behavior in a drupal system

I am migrating an older site to a newer one which is using Drupal. As part of this I am trying to setup some 301 redirects to the new pages but I am getting some unexpected behavior. I added the ...
8
votes
1answer
25k 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 ...
26
votes
4answers
62k 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 ...
5
votes
3answers
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 ...
6
votes
2answers
231 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 ...
10
votes
2answers
384 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,...
1
vote
2answers
217 views

Wordpress - Going from categories to tags

I have some aging Wordpress blogs where I made the mistake of creating way too many categories (50+ in some instances). This was, in part, due to the fact that tagging was not yet available in ...
4
votes
1answer
510 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 ...
8
votes
3answers
940 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
2answers
405 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 Italy ...