Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [301-redirect]

301 is the HTTP status code for a permanent redirect.

Filter by
Sorted by
Tagged with
2
votes
1answer
796 views

Redirect before rewrite

Had an issue where I need to redirect old URLs, but not disable the mod_rewrite for page structure. redirect 301 /home.html http://www.example.com/ It needs to live on the Symphony 2.0 .htaccess ...
5
votes
2answers
2k views

How to 301 redirect from old query string URLs to CakePHP Canonical URLs?

I currently have a .htaccess file that looks like this: RewriteCond %{QUERY_STRING} ^action=view&item=([0-9]+)$ RewriteRule ^index\.php$ /index.php?url=item/%1 [R=301] RewriteCond %{...
3
votes
2answers
229 views

Different data for www and no-www in Google Webmasters Tools

My Webmasters Tools home page contains example.com and www.example.com in the sites section. There is a rewrite rule (301 redirect) on my server that redirects all requests from www.example.com to ...
2
votes
3answers
2k views

Proper way to move Google Analytics code from one site to another one

Currently, I use Google Analytics for www.example.com. example.com is also added to GA and shows "Tracking not installed". Recently I added rewrite rule (301 redirect) to redirect all requests from ...
3
votes
2answers
358 views

How can I rewrite an old URL using variables to a static html page?

I am trying to redirect old URLS to the new URLS, the old site used variables in the URL but the new site uses SEO friendly URLs. When I try to redirect the old URL, it is not redirecting correctly ...
2
votes
2answers
870 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 ...
26
votes
4answers
63k 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 ...
3
votes
1answer
766 views

Is it possible to create a 301 redirect and MX records at a naked domain?

I'm wondering since I found out that creating a CNAME and an MX record is not allowed. I want to create a 301 redirect from example.com to www.example.com, and have email with @example.com addresses. ...