Redirect old URL's from referring sites?
-
Hi
I have just came across some URL's from the previous web designer and the site structure has now changed.
There are some links on the web however that are still pointing at the old deep weblinks.
Without having to contact each site it there a way to automatically sort the links from the old structure
www.mydomain.com/show/english/index.aspx
to just
Many Thanks
-
Hi Yes I think so, but is there a way to check/run a test?
UPDATE - Yes it is enabled its on Dreamhost
-
Does the apache have the mod rewrite installed?
-
Hi Robert
I am trying the following in a .htaccess file but the old URL is not redirecting to the root url?
RewriteEngine on
RedirectMatch 301 http://mydomain.co.uk/show/english/home.aspx http://www.mydomain.co.uk
RedirectMatch 301 http://www.mydomain.co.uk/show/english/home.aspx http://www.mydomain.co.uk
-
Sorry Ocelot, was tied up.
Here is a link to a moz resource from WebConfs.com
On moz here is another good resource page re redirects (where I pulled that link above from).
On WebConfs.com in the left sidebar is a redirect checker, once done put in your url and see how you did.
LMK if you get stuck.
-
Thanks Robert
But what is the correct code needed for the 301 in the .htaccess file as I am not getting this right at the moment! Been trying for the past few hours!
-
For yours, when you know the bad url is www.example.com/how-happened/dont-know
And you have a how-happened page on current site. In the .htaccess file put your 301 from bad link to current url and you will move any links as well.
-
Thanks again Robert!
How would you direct the old links to the relevant pages, as in my example of
www.mydomain.com/show/english/index. aspx
to just
Do you have any working examples that I could modify to suit my scenario above? Would this be done in a .htaccess file or in WMT? or could I just recreate the directory structure and file with a 301 to the new page?
-
Ocelot,
I would use Screaming Frog to spider the site. If you don't have, you should be able to download a free version from the web to whatever browser, etc. you use. When you open it, you will see where to put the domain and below that a row of buttons - use response codes to find what 404's you have. then click on them and use the links button at the bottom to see the links to those pages.
There is no blanket way to redirect the bad links if that is what you are asking. You can look at them in WMT and for the ones that have authority/get traffic, etc. you can redirect those to relevant pages and the others you need to have a good 404 page up that keeps them on the site.
Hope that helps,
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
-
How do I handle a redirect chain issue pertaining to a page that doesn't actually exist on my site?
I have a page showing up on the insights report as being a redirect chain. This page however does not exist as far as I can tell. It is not on my dashboard anywhere and pointing a browser to it produces a messy page with Wordpress theme error code spit out. How do I track this down to clean it up if the page does not exist within my Wordpress installation? The page for reference is https://butlermobility.com/dealers/downloads. As it stands today the dealers and downloads pages are separate. There is no downloads sub page within the dealers section.
Technical SEO | | NiteSkirm0 -
Old Content after 301 Redirect Success
Hi, I want to ask what need I do to the old content after my 301 redirect to the new domain with the same content success? Do I need to remove that old content? Nothing bad happen right? Thanks
Technical SEO | | matthewparkman0 -
Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL?
This is for an ecommerce site, and the company I'm working with has started selling a new line of products they want to promote.Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL? One of my concerns is losing a little bit of link value from redirecting. Thank you for reading!
Technical SEO | | DA20130 -
Temporary Redirect - on nonexistant URL
I'm getting a Temporary Redirect issue on | http://www.luckygemstones.com/botswana-legends.htm http://www.luckygemstones.com/botswana-legends.htm | http://www.luckygemstones.com/page-not-found.htm | 1 | 0 | 302 | YET! There is no such page on my site. I believe I had one once, but has been corrected for a while now. WHY is SEOMOZ picking this up as an error and how can I fix? Kathleen http://www.luckygemstones.com
Technical SEO | | spkcp1110 -
Redirects in site map
I have a site with the ace/sef ( creates friendly URLS) in a large data base site. It creates a site map dynamically. Yet I realize one issue which I am trying to think through. I recently changed my urls to include an ID number example: homepage/houses/1134-big-blue-house The prior url was: homepage/houses/big-blue-house the original url above redirects to the new one with the ID like I want. However the site map has both URLS in it which go to same page I am not sure but it seems rather stupid to have the new URL and OLD redirected URL in the site map. Yet beside stupid I am wondering if this is duplicate content and will cause a penalty from the google bot. What is your opinion ?
Technical SEO | | aimiyo0 -
Canonical tags pointing at old URLs that have been 301'd
I have a site which has various white label sites with the same content on each. I have canonical tags on the white label sites pointing to the main site. I have changed some URLs on the main site and 301'd the previous URL to the new ones. Is it ok to have the canonicals pointing to the old URLs that now have a 301 redirect on them.
Technical SEO | | BeattieGroup0 -
Do any short url's pass link juice? googles own? twitters?
I've read a few posts saying not shorten links at all but we have a lot to tweet and need to. Is googles shortener the best option? I've considered linking to the category index page the article is on and expect the user to find the article and click on the article, I don't like the experience that creates though. I've considered making the article permalink tiny but I would lose the page title being in the url. Is this the best option?
Technical SEO | | Aviawest0 -
What's the difference between a category page and a content page
Hello, Little confused on this matter. From a website architectural and content stand point, what is the difference between a category page and a content page? So lets say I was going to build a website around tea. My home page would be about tea. My category pages would be: White Tea, Black Tea, Oolong Team and British Tea correct? ( I Would write content for each of these topics on their respective category pages correct?) Then suppose I wrote articles on organic white tea, white tea recipes, how to brew white team etc...( Are these content pages?) Do I think link FROM my category page ( White Tea) to my ( Content pages ie; Organic White Tea, white tea receipes etc) or do I link from my content page to my category page? I hope this makes sense. Thanks, Bill
Technical SEO | | wparlaman0