Can I make a universal 301 redirect rule for my site?
-
I.e. I switch shopping carts and every page has the same path/name but now ends in .php instead of .htm.
-
If you have mod_rewrite enabled on your server you could try something like this in your .htaccess file:
RewriteCond %{REQUEST_URI} ^(.).htm$
RewriteRule ^(.) /$1.php [R=301,L] -
You can use Excel formulas to generate a list with all your URLs with .php....
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
-
Is it better to have micro-sites with good content or redirect domains?
I have a domain with a lot of content and it is an eCommerce site. I've just been told that we have another 12 domains that are inactive and do not redirect. I don't know what to do with them as they haven't been used for ages and do not direct or have any content (max of a DA or 4). Therefore which is better for SEO? To have really good content with perhaps a few regular blog posts on each of the 12 domains, or to redirect all of the domains to the one main domain? I would take 1 domain and put a lot of content on and optimise is.. spending a few weeks on one and then move onto another, all while posting on each blog on each domain. Thank you for any help! 🙂
Link Building | | schloeee0 -
Unlinked mentions that seem to be FROM by site
Hi Everyone I'm new to SEO so apologies if this is a silly question. I'm using the unlinked mentions tool and as far as I can see the mentions are from my own site! I've attached a screen grab. Am I being a muppet? I thought that it would show mentions on OTHER sites that I don't have a link back to my site! The screen grab appears to show links on my site, as in posts on my own forum? Thanks for your help! Cw2bjhw
Link Building | | NappyValleyNet0 -
How to safeguard against negative SEO for new sites?
Hi Mozers!! I have a question. The ugly tools for blog commenting etc are still out there, my question is what if your competitor notices you that you are new to the business and they start building 20,000+ backlinks to your new site, and they too with one exact match anchor text that you are targeting. I know we can disavow tool, but I guess that would be too late? What are your thoughts? What will be the solution the above case scenario?
Link Building | | TheSEOGuy10 -
Linking to a site in the US from a site in the UK - Good, bad or not important?
Would linking to a site in the US from the UK do harm or good if the site being linked to is industry related? i.e. a UK web design company linking to a US web design career site.
Link Building | | Tone_Agency0 -
Redirect a 404 page
Hi We encountered a problem with our site during a migration to a new platform and we lost much of link juice. I have noticed on SEOmoz Open Site explorer that our old urls from the old site still exists and many have high page authority. The urls all redirected currently to a 404 page and it is not possible to retrieve the old information For example this page http://www.featuredeco.co.uk/mall/departmentpage.cfm/FeatureDeco/_71989/1 This has a page authority of 32. Is it possible to retrieve the link juice from these pages and channel it on the Kind regards Paul
Link Building | | prano0 -
Should you guest post on a site with no quality links?
Suppose a site is related to your industry and has a relatively good domain authority of 49. However when you look at their link profile it is mostly directories and they don't seem to have any natural links from quality sites. Would you still take the link if they offered to publish your guest post?
Link Building | | ProjectLabs1 -
Should I outsource any SEO work or can I do it all?
My website needs a lot of improvement and we are working on it but I also don't want to fall behind on the SEO work. I am guessing that I can do much of it myself through SEOmoz.org but is there a part that busy folks should get others to do? Any feedback will be greatly appreciated. Thank you, Utah Tiger
Link Building | | Boodreaux0 -
Where are all the sites that are linking to me?
I need to compile a list of all the siters linking to my site, but my open site explorer analysis shows very few links. I know for certain that there are many many more sites linking to it (it's an academic site and there are links to it from a lot of academic directories). What am I doing wrong?
Link Building | | michalseo0