Stack Exchange Network

Stack Exchange network consists of 174 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 [301-redirect]

301 is the HTTP status code for a permanent redirect.

1
vote
0answers
42 views

When removing a bunch of files from a website, is 301 to the start page appropriate? [duplicate]

Possible Duplicate: What to do with random pages after a 301 redirect? Currently, we are working on modifying the contents of a website of one of our products. Since we are re-positioning the ...
1
vote
2answers
226 views

What to do with random pages after a 301 redirect?

I did a standard 301 redirect for a domain, but the original domain has about 300 pages that have some strength. It doesn't make sense to make them all point back to the new home page because the ...
0
votes
3answers
661 views

.htaccess RedirectMatch 301 issue

I've moved my WordPress installation from one domain to another, and I want to use an .htaccess file on the original to redirect visitors to the new page on the new website. The old site is http://...
0
votes
1answer
854 views

.htaccess: Redirect Hotlink Flash --> Site with embed Flash

I have some PHP sites that embeds SWF files. These SWF files are now linked to by some other guys. And I don't want them to simply open the SWF, I want them to force being redirect to the page where ...
4
votes
1answer
545 views

Multiple 301 redirects, do search engines / user-agents see them all?

I've put in place a lot of different 301 redirects to deal with numerous URL changes. And for certain URLs there are 3-4 different 301 redirects landing the visitors to the new URL. I heard that 301 ...
1
vote
1answer
651 views

How does bing-bot( is that the right spider-name? ) and googlebot interpret 301 redirect?

I've been looking for documentation on how the Microsoft and Google bots interpret 301 redirects. It seems that google-bot stores documents on a url based index system. But I haven't been able to ...
2
votes
3answers
1k views

Changing title <h1> of page, is it necessary to change URL?

I am planning to update content on an already performing page and expand the content on page. In order to accommodate the extra content, updating the title of the page is necessary and I think could ...
2
votes
1answer
699 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
357 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
862 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
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 ...
3
votes
1answer
690 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. ...