Questions tagged [http-status-code-301]
The 301 or Moved Permanently error message is a HTTP standard response code indicating that the requested resource has been assigned a new permanent URI. Future references should use one of the returned URIs.
http-status-code-301
1,809
questions
1
vote
4
answers
283
views
301 all 404s to homepage
Does anyone know the best way to do this? Apache, tomcat, linux
2
votes
1
answer
254
views
SEO and Duplicate URLS
I'm updating a website's menu system and adding SEO urls. I'll have two URLs pointing to a similar resource for a while but only one of them will be rendered on the menu.
Should I leave the old URLs ...
0
votes
2
answers
854
views
Redirecting from domain.com to www.domain.com keeping GET & POST data
Currently my web site shows the same data if people go to domain.com or www.domain.com.
I would like to set up a redirect so all requests to domain.com will get sent onto www.domain.com. So a user ...
1
vote
1
answer
3k
views
How do I use .htaccess to redirect an aspx page to a php page?
I recently moved from a asp.net host to a PHP host. I am trying to setup 301 redirects of my old urls using .htaccess. Here is what I want to accomplish:
old url: http://www.vasanth.in/downloads/...
2
votes
6
answers
7k
views
redirecting w., ww., wwww. to -> www
I'm trying to redirect site.com w.site.com ww.site.com and wwww.site.com to www.site.com.
My boss wants to ensure typos make it to the site as well.
They redirect fine. I'm using ASP.Net and throw ...
1
vote
3
answers
1k
views
How to do 301 redirects in asp.net from old Apache mod_rewrite style urls when moving a site from php to asp.net?
I have an existing site in php running on Apache using the mod_rewrite plug-in. In other words, I currently have urls like www.example.com/section/subsection/ which Google and others have indexed.
...
1
vote
3
answers
629
views
301 redirect
How do i redirect a url to domain .
eg. http://www.mydomain.com/index.php=HairThing --> http://www.mydomain.com
How do i redirect a non-www to www WITHOUT a slash at end ?
eg http://mydomain.com --->...
3
votes
1
answer
1k
views
Redirect rule in .htaccess is taking me to the wrong place
I'm having trouble with redirecting urls using the .htaccess file. This is what my .htaccess file looks like:
Redirect 301 /file-name/example.php http://www.mysite.com/file-name/example-001.php
...
562
votes
25
answers
678k
views
Generic htaccess redirect www to non-www
I would like to redirect www.example.com to example.com. The following htaccess code makes this happen:
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=...