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.
Questions tagged [http-status-code-301]
1797 questions
2
votes
0 answers
Redirect 301 in .htaccess with .htm doesn't work
For a website I've made an .htaccess file with approximately 50 redirects. Unfortunately, most of them don't work. There seems to be a pattern:
This works
Redirect 301 /news/news http://levelav.nl/news/
This doesn't work
Redirect 301…

Kevin Brands
- 23
- 4
2
votes
1 answer
Why i am getting HTTP Status 301 on loading google using jquery?
I am trying to load the content of google.com in a div. I am using
$('#loadGoogleBtn').click(
function(){ alert ( 'loading' );
$('.container').load('http://google.com');
alert ( 'done' );
});
http://jsbin.com/uwopu4
But it is…

Rakesh Juyal
- 35,919
- 68
- 173
- 214
2
votes
0 answers
301 htaccess redirect regular expression to elimate folder
my first question here but SO has always been a good resource for me.
I have an issue with a rewrite in an htaccess. I want totally eliminate a folder
url www.example.com/listor/XXX/12345.html
and rewrite to
www.example.com/listor.12345.html
Im…

Tobias Gillberg
- 21
- 1
2
votes
1 answer
htaccess 301 redirect domain but not a specific folder and files
I tried searching in first here in stackoverflow and google for the best answer but I could not find a solution to my problem.
My question is can I add a condition where a specific sets of folder/files in my server will not be affected by a htaccess…

Eggy
- 103
- 1
- 2
- 13
2
votes
1 answer
Wildcard 301 redirect using .htaccess
I moved a website from http://lifeworkslearningcenter.com to http://lifeworks.life. I set up seven 301 redirects for individual URLs that are working fine, as well as a simple 301 to redirect the base URL to the new base URL.
Now I need to set up a…

Melodist
- 183
- 1
- 1
- 12
2
votes
2 answers
A simple 301 redirect creates an infinite loop in my htaccess?
I had this url on my website example.com/foo.php and I changed it to example.com/foo by doing this in my htaccess:
RewriteRule ^foo$ foo.php [NC,L]
And it works fine. However I'd like to do a 301 redirect from the old url to the new url. So I added…
user279274
2
votes
1 answer
How to redirect a sub directory except for the landing page?
I need to redirect all my WordPress posts under the sub-directory /plays/ to the home directory (/) except for the landing page.
So if you go to example.com/plays/hello you will be redirected to example.com/hello
But if you go to…

user3376065
- 1,137
- 1
- 13
- 31
2
votes
0 answers
HTTP Put Request With No Payload After 301 Redirect
I recently asked a question involving a put request and the solution was to update the url to be https:// instead of http:// to avoid a redirect wiping out the payload.
Specifically, when my code sent out the first put request, it got a response…

mucle6
- 645
- 1
- 10
- 24
2
votes
1 answer
Removing "/" and "-" by 301 redirect via htaccess
301 redirect this:
example.com/AnythingHere/-/AnythingHere.html
to:
example.com/AnythingHere/AnythingHere.html
Note: AnythingHere means any digit/alphabet/dash/underline.
tried this but not work:
RewriteRule (.*)/(.*)-(.*)\.html$ …

Jim Jackson
- 21
- 1
2
votes
1 answer
web.config redirect to https causing redirect loop
I am trying to use this code in the web.config to redirect all pages on the website to https:// however as soon as I try this I get an infinite loop (Firefox tells me the redirect will never end properly), but I have no idea why. I only have access…

S.Wiser
- 21
- 3
2
votes
1 answer
Access index.html in folder without 301 redirect
I have some index.html files sitting in a folder to get some nice urls -
site.com/about
where index.html sits in the about folder. But I am seeing that my site.com/about is being 301 redirected to site.com/about/ I am not sure where the 301 is…

Jon
- 6,437
- 8
- 43
- 63
2
votes
1 answer
What will happen if I remove 301 permenant redirect code?
I have more than 3000 301 redirect in my blog. Its now more than 6 months. Now I want to remove them, but the problem is I don't know what will happen If I do it.
Will search engines like Google will show 404 errors again in
webmaster?
What type of…

Rocky Sena
- 481
- 1
- 5
- 15
2
votes
1 answer
Htaccess - 301 redirect with analytics campaign parameters
I have multiple domains directed to folder with .htaccess
my htaccess looks like this:
RewriteEngine On
rewritecond %{http_host} ^domain-2.com
rewriteRule ^(.*) https://domain-1.com/?utm_source=redirects&utm_medium=domain-2.com&utm_campaign=301…

Mathias Isaksen
- 23
- 2
2
votes
0 answers
Scrapy HTTP Redirect 301 Issue
I'm attempting to scrape a website and every child link I scrape is returning a HTTP 301 redirection response with no data in the response object.
2015-07-18 01:54:52 [scrapy] DEBUG: Crawled (301) http://website.example> >(referer:…

Seonixx
- 468
- 3
- 16
2
votes
2 answers
Htaccess Code not working after changing Server
I was using this code in htaccess to strip any directory to index.php
RewriteRule ^.(index.+?\.php)$ /$1 [L,NC,R=301]
For…

Ruchika
- 503
- 1
- 8
- 26