Redirect 301
-
Hi,
I `m redirecting some pages in htaccess
The first 15 pages that i redirected it worked. But the last 3 dont work, and i cant figure it out why it is not working.
Redirect 301 /analyseverktoy/ /webanalyse
Redirect 301 /index.php/ledige-stillinger/ /
Redirect 301 /?page_id=352/ /Anu suggestions?
-
And when you look at the final URLs in the address bar of your browser, do these URLs that return 404 errors correspond to the URLs you set up with the Redirect rule?
Usually when your redirects are messed up you get 500 Internal Server errors, not 404 errors.
Maybe the problem is not in how you defined the redirects in the .htaccess file, but you are choosing the incorrect URLs to redirect to.
-
I get a 404. page not found.
The strange part is that some are working and the other ones are not.
-
If you defined the redirect rules correctly and some works and some don't check if these new defined rules don't conflict with others previously declared. What errors do you get?
-
Any suggestions why it does not work or how we can fiks it?
-
Thanx, one of them is working...but the other ones stil dont work....
Working: Redirect 301 /index.php/ledige-stillinger/ http://mysite.com/
Not Working:
Redirect 301 /?page_id=352/ http://mysite.com/
Redirect 301 /googleanalitycskurs/ http://mysite.com/googleanalyticskurs
Redirect 301 /sokemotoroptimalisering-tips/ http://mysite.com/sokemotoroptimaliseringtips/Thank you for the advice.
-
That's exactly how I do mine. The full URL is what you are missing. You need the http:// in it.
-
It doesn't work because you are not doing it correctly
The Redirect command has 3 parameters:
1. The redirect type (in your case 301)
2. The location of the file/directory you want redirected relative to the root of your site
3. the full URL of the location you want that request sent toYou are mistaken the third parameter, because you are not putting there the full path. You should put something like this:
Redirect 301 /analyseverktoy/ http://www.yoursite.com/webanalyse
Redirect 301 /index.php/ledige-stillinger/ http://www.yoursite.com/
Redirect 301 /?page_id=352/ http://www.yoursite.com/
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
301 redirects and impact on page authority
I need to restructure a section of my website, changing some page titles and moving some pages to other sections. This will then change the URLs but the CMS I use will automatically create 301 redirects so the old URLs still work. The question is, will this have any negative impacts on page authority/page rank? From what I've read, it seems having 301's used to have a negative impact but doesn't anymore?
Intermediate & Advanced SEO | | ciehmoz0 -
Redirect Plugin: Redirecting or Rewriting?
Hey everybody! It's been a while since off the boards! I am reworking a site and I have been looking into their Redirection Plugin. I personally tend to lean towards just using the .htaccess because, well, why not. However, when looking deeper into the plugin I found myself a little confused with their redirection wording. RewriteRule ^/products/landing-page-october-2015/$ /products/special-education-news-october-2015/ [R=301,L] Is that the same thing as a classic Redirect 301?
Intermediate & Advanced SEO | | HashtagHustler0 -
Web developer won't 301 redirect to my new website....what can I do?
I want to come away from our third party web developer and use a new website with different web developers, however the web developer wont 301 redirect the old url's to the new ones. Is he required to do this by law? Is there away of doing the 301 redirects without him? Any advice would be much appreciated. Many thanks,Tom
Intermediate & Advanced SEO | | CoGri0 -
Tracking URLS and Redirects
We have a client with many archived newsletters links that contain tracking code at the end of the URL. These old URLs are pointing to pages that don't exist anymore. Is there a way to set up permanent redirects for these old URLs with tracking code? We have tried and it doesn't seem to work. Thank you!
Intermediate & Advanced SEO | | BopDesign0 -
How to 301 redirect old wordpress category?
Hi All, In order to avoid duplication errors we've decided to redirect old categories (merge some categories).
Intermediate & Advanced SEO | | BeytzNet
In the past we have been very generous with the number of categories we assigned each post. One category needs to be redirected back to blog home (removed completely) while a couple others should be merged. Afterwords we will re-categorize some of the old posts. What is the proper way to do so?
We are not technical, Is there a plugin that can assist? Thanks0 -
Should you cache redirects?
I would like to know what fellow SEO people think, should you cache a redirect? Problems I see with caching redirects are meta refreshes and there might be a slow down in page load, but is it a big issue? Should we cache redirects? Do pages get indexed more if you cache redirects? Our ecommerce product pages are all dynamic, and currently we cache redirects but i'm seeing a lot of meta refresh issues. Another area that cropped up is that, the redirect doesn't pass on query parameters. Our system dumps URLs and they are redirected to SEO ones, but the redirect doesn't pass on parameters like Google Analytic tracking tags. What are your thoughts? Thanks
Intermediate & Advanced SEO | | Bio-RadAbs0 -
How to conduct catch 301 redirects & have the separate 301 redirects for the key pages
Hi, We've currently done a site migration mapping and 301 redirecting only the sites key pages. However two GWT (Google Webmaster Tools) is picking a massive amount of 404 areas and there has been some drop in rankings. I want to mitigate the site from further decline, and hence thought about doing a catch 301 - that is 301 redirecting the remaining pages found on the old site back to the home page, with the future aim of going through each URL one by one to redirect them to the page which is most relevant. Two questions, (1) can I do a catch 301 and if so what is the process and requirements that I have to give to the developer? (2) How do you reduce the number of increasing 404 errors from a site, despite doing 301 redirects and updating links on external linking sites. Note: The server is apache and the site is hosted on Wordpress platform. Regards, Vahe
Intermediate & Advanced SEO | | Vahe.Arabian0 -
Redirect a temporary IP
I was performing some development work on a client's site recently under a temporary location on the host's server, for example: http://11.22.33.444/~accountname/folder/page.html Google managed to index a couple of pages using this url 😞 I have updated DNS to the correct domain and the site is live, but I am a bit confused in regards to the correct way to create a 301 Redirect for this example or at least a way point it to our 404 page. I am hoping someone more proficient with htaccess can help me out a bit... Thanks!
Intermediate & Advanced SEO | | SCW0