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
0
votes
1 answer
IIS7 301 Redirect Regex to replace underscores with hyphen
I'm looking for some help using regex for my 301 redirects on IIS7.
I have links directing to pages like http://mydomain.co.uk/dir/colour_photo_copying.html and I'm hoping to rename these files to use hyphens instead of underscores.
On a one by one…

Jason
- 29
- 2
- 8
0
votes
1 answer
301 or 404 Millions of indexed pages
Hope someone can shed some light on the best way to do this. We currently have a website with roughly 3 1/2 million pages indexed into google. Now we've decided we no longer need this site and we're taking it down and replacing it with a much…

alexkodr
- 523
- 3
- 7
- 30
0
votes
1 answer
301 redirect in htaccess
I changed the URL of my articles so I need to be able to redirect them all, but this is how I had it set before in htaccess:
RewriteRule ^industry/([a-zA-Z0-9-]+).([0-9]+)/$ index.php?tag=industry&slug=$1&id=$2
Which would give me something…
user1708530
0
votes
1 answer
How can I 301 redirect domain.com/tag/* to domain.com/blog/tag/*
I am trying to redirect links to domain.com/tag/* to domain.com/blog/tag/*
(where * is the actual tag name - eg music so domain.com/tag/music would redirect to domain.com/blog/tag/music)
I have been trying but I just can't wrap my head around it.

Craig Dennis
- 11
- 1
0
votes
1 answer
Doing 301 redirects of urls containing a specific string caused by hacking
I have a wordpress site that was hacked and hundreds of urls were created that no longer exist after I cleaned the site up. I have noticed a lot of these urls contains a specific keyword as displayed…

stephen
- 1
0
votes
1 answer
URL Re Writing issue double http issue
I am having a issue with my urls google have crawled double http for example
http://example.com/example.com/c-title-id.html
and all the interlinked pages like that
please can any one help me out to redirect all the urls with 301 with .htacess
My…

user2998120
- 23
- 1
- 5
0
votes
2 answers
adding www to domain without reset it back to base
Hi I am trying to do a redirect from non wwww to www I am using the code below
RewriteEngine On
RewriteCond %{HTTP_HOST} ^basedomain\.com$ [NC]
RewriteRule ^/(.*)$ www.basedomain.com/$1 [L,R=301]
this works fine except it resets everything back to…

user1920187
- 802
- 1
- 7
- 15
0
votes
0 answers
301 redirects on a large scale
I am migrating a site and I have 6k+ 301s that I need to sort out. I have a spreadsheet with the old and new urls and that is as far as I've got.
I don't think putting 6000 lines in .htaccess can be right, what are the alternatives?
Thanks

Tristanisginger
- 2,181
- 4
- 28
- 41
0
votes
3 answers
PHP 301 redirect multiple URLs
I am trying to move multiple dynamic URLs using a php 301 redirect, not htaccess.
I can't work out how to put it together though as I'm a little out of my depth, this is all have so far.

GoldenGonaz
- 1,116
- 2
- 17
- 42
0
votes
1 answer
301 redirect old urls in subdirectory to new urls
I have changed the url structure on a wordpress site and need to 301 the old urls to the new ones. The old structure was as follows:
/news/[category-name]/[post-url-slug]
So it was always /news then it would have the url slug for the category and…

geoffs3310
- 5,599
- 11
- 51
- 104
0
votes
0 answers
301 redirects in .htaccess on apache
I guess this should be straightforward but my host got me to switch server from zeus to apache following which the .htaccess file with existing individual 301 redirects failed to work causing an internal server error, so have commented them out for…
0
votes
1 answer
HTTP Header response code
I installed a plugin on my Wordpress website to redirect all missing pages to the homepage. The plugin seems to be working ok but the header response code for the redirected page is 202. Shouldn't it be 301?

jrcollins
- 153
- 1
- 9
0
votes
1 answer
301 redirect all assets from http to https
I've searched and tried but I can't seem to find an answer on how to 301 redirect all assets when moving my http site to full https.
I'm looking for a way to either use .htaccess or httpd.conf to 301 redirect all assets (images, pdf, videos, js,…

William
- 141
- 1
- 2
- 9
0
votes
1 answer
Redirect Old Domain to New Domain Except robots.txt
I'm in the process of moving my old site domain to a new domain. I have all pages redirecting to corresponding pages on the new domain. The old domain's robots.txt file is redirecting to the new domain's robots.txt file. I want to redirect all pages…

Daniel Harris
- 1,805
- 10
- 45
- 63
0
votes
2 answers
301 Redirect and query strings
I am looking to create a 301 redirect based purely on a query string see b
OLD URL: olddomain.com/?pc=/product/9999
New URL: newurl.php?var=yup
My normal way of doing this would be
redirect 301 pc=/product/9999 newurl.php?var=yup
But this time I…

Lizard
- 43,732
- 39
- 106
- 167