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 [301-redirect]

301 is the HTTP status code for a permanent redirect.

1
vote
1answer
9k views

How to setup mod_rewrite/htaccess to do url masking and forwarding to a subdirectory?

Its been about three years since I've played with apache and php(I've been using thin and nignx ;). So I've forgotten how to setup a mod_rewrite directive to forward all http requests from root to the ...
2
votes
1answer
112 views

Redirecting domains to prevent duplicate content [duplicate]

Possible Duplicate: What is duplicate content and how can I avoid being penalized for it on my site? I have 2 domains: www.company.com and www.product.com I like both domains, they both point ...
1
vote
1answer
1k views

What can cause RewriteRule to work only for certain pages?

Are there any external factors (that is, not in the .htaccess file) that can cause the RewriteRule not to work for specific URLs (of existing pages)? I have the following code in the .htaccess file (...
1
vote
3answers
160 views

How to Preserve PageRank for Disappearing Pages?

Pretend that USA Today has a section of their site where the sell electronics, which they locate at http://electronics.usatoday.com. The subdomain is powered by an online electronics store called ...
3
votes
1answer
160 views

Is it ok to use 301's this way?

I installed a forum, which has a page for member info. I want this to link to my main sites member info page which is a lot more detailed and interactive. The forum membership page has the url: ...
0
votes
2answers
105 views

Best way to deal with non existant page

I had on my website category pages. they were http://my.site.com/en/somecountry/category/ but with the structure change of my site (it's rather new), I have no need for this http://my.site.com/en/...
14
votes
3answers
9k views

What is the best way to redirect my naked domain?

I have example.com, which points to web server using A records, I want to redirect all traffic from www.example.com to example.com. As far as i know these are methods, 301 HTML redirect from www to ...
3
votes
3answers
199 views

How important is it to 301 redirect forum posts

I am going through the process of porting all forum data from PHP to ASP.net, it's quite a long and difficult process. There are around 30,000 threads, it's been online for quite a few years. How ...
2
votes
1answer
209 views

mod_rewrite change . (dot) to - (hyphen)

I'm moving my site and the URL structure has changed because of the new CMS. The old URLs are similar to /my.products.htm, but on the new site we are changing the URLs to /my-products. Is there a way ...
3
votes
3answers
308 views

SEO disasters moving domain for a high traffic website?

We're looking at moving our website from http://www.wikijob.co.uk to http://www.wikijob.com/uk as we spread our wings internationally. Our .co.uk website has a PR6 and received around 1/2 million ...
2
votes
2answers
310 views

301 redirect and page ranking

Say I have a site 123example.com, with roughly 100 backlinks, which has increased from a google page 27 to page 12 for my keywords over the last month and continues toward the top 10... I have another ...
1
vote
2answers
320 views

Will search engines reindex a page that has been set to redirect on to a newer site page?

We were asked by a client to change a website so that any pages/Urls we were hosting on an older site would now redirect to a newer site hosted somewhere else and a different domain name to boot. We ...
0
votes
1answer
44 views

SEO: 301 for a page which has no mirrow path?

I just did a 301 and the domain and some pages which have a mirror file path are fine. But I have one directory which is not going to be part of the new site and I don't know how to redirect the old ...
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
664 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
860 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
657 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
730 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
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 ...
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
703 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. ...