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
-
Google has deindexed a page it thinks is set to 'noindex', but is in fact still set to 'index'
A page on our WordPress powered website has had an error message thrown up in GSC to say it is included in the sitemap but set to 'noindex'. The page has also been removed from Google's search results. Page is https://www.onlinemortgageadvisor.co.uk/bad-credit-mortgages/how-to-get-a-mortgage-with-bad-credit/ Looking at the page code, plus using Screaming Frog and Ahrefs crawlers, the page is very clearly still set to 'index'. The SEO plugin we use has not been changed to 'noindex' the page. I have asked for it to be reindexed via GSC but I'm concerned why Google thinks this page was asked to be noindexed. Can anyone help with this one? Has anyone seen this before, been hit with this recently, got any advice...?
Technical SEO | | d.bird0 -
Why is robots.txt blocking URL's in sitemap?
Hi Folks, Any ideas why Google Webmaster Tools is indicating that my robots.txt is blocking URL's linked in my sitemap.xml, when in fact it isn't? I have checked the current robots.txt declarations and they are fine and I've also tested it in the 'robots.txt Tester' tool, which indicates for the URL's it's suggesting are blocked in the sitemap, in fact work fine. Is this a temporary issue that will be resolved over a few days or should I be concerned. I have recently removed the declaration from the robots.txt that would have been blocking them and then uploaded a new updated sitemap.xml. I'm assuming this issue is due to some sort of crossover. Thanks Gaz
Technical SEO | | PurpleGriffon0 -
Changed URL of all web pages to a new updated one - Keywords still pick the old URL
A month ago we updated our website and with that we created new URLs for each page. Under "On-Page", the keywords we put to check ranking on are still giving information on the old urls of our websites. Slowly, some new URLs are popping up. I'm wondering if there's a way I can manually make the keywords feedback information from the new urls.
Technical SEO | | Champions0 -
Found a Typo in URL, what's the best practice to fix it?
Wordpress 3.4, Yoast, Multisite The URL is supposed to be "www.myexample.com/great-site" but I just found that it's "www.myexample.com/gre-atsite" It is a relatively new site but we already pointed several internal links to "www.myexample.com/gre-atsite" What's the best practice to correct this? Which option is more desirable? 1.Creating a new page I found that Yoast has "301 redirect" option in the Advanced tap Can I just create a new page(exact same page) and put noindex, nofollow and redirect it to http://www.myexample.com/great-site OR 2. htacess redirect rule simply change the URL to http://www.myexample.com/great-site and update it, and add Options +FollowSymLinks RewriteEngine On
Technical SEO | | joony2008
RewriteCond %{HTTP_HOST} ^http://www.myexample.com/gre-atsite$ [NC]
RewriteRule ^(.*)$ http://www.myexample.com/great-site$1 [R=301,L]0 -
Website's stability and it's affect on SEO
What is the best way to combat previous website stability issues? We had page load time and site stability problems over the course of several months. As a result our keyword rankings plummeted. Now that the issues have been resolved, what's the best/quickest way to regain our rankings on specific keywords? Thanks, Eric
Technical SEO | | MediaCause0 -
How can I redirect old URLs to new ones?
We are trying to optimize our website for search engines and one of the things we have noticed that needs to be changed are the URLs. I know how to modify the URLs but have no idea how I can get the old redirected to the new ones using 301. We have some pages ranking pretty high on Google and we can't loose this traffic. Our website is hosted on Plesk and it was coded using Cold Fusion. I do have access to the .htaccess file. Any help would be highly appreciated.
Technical SEO | | personalproducts0 -
Why is this url showing as "not crawled" on opensiteexplorer, but still showing up in Google's index?
The below url is showing up as "not crawled" on opensitexplorer.com, but when you google the title tag "Joel Roberts, Our Family Doctors - Doctor in Clearwater, FL" it is showing up in the Google index. Can you explain why this is happening? Thank you http://doctor.webmd.com/physician_finder/profile.aspx?sponsor=core&pid=14ef09dd-e216-4369-99d3-460aa3c4f1ce
Technical SEO | | nicole.healthline0