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
-
Authority redirection - 301
Hello! Could you please help me out with below? For example i have a domain www.domain1.com which has authority of 50... and i set redirect 301 to www.domain2.com will the second domain receive first domains authority and rankings? Thanks in advance!
Link Building | | irakli.chkheidze0 -
Accidentally generated navigation links that point to American site from Australian site.
Somehow we ended up getting hundreds-of-thousands of links coming from our .au (Australia site) to our .com (America site). We believe that something happened during a change that turned a handful of our example.com.au navigational and footer links into back links pointing to example.com and sub-domains of the American version. We are currently fixing this, but we are wondering if this could potentially be problematic in terms of a penguin penalty due to an unnatural linking campaign or back link scheme. Could this error create major problems for us in the near future if we have corrected the issue? Your thoughts are welcome! Thanks!
Link Building | | tdawson090 -
Redirect 301 multiple url to frontpage
I have a lot of /dummy.php/xxx pages that i would like to redirect to the front page. /dummy.php/100
Link Building | | Morten-Hjemmesider
/dummy.php/101
/dummy.php/102
..... redirect 301 /dummy.php/WILDCARD http://www.domain.com I can not figure it out?0 -
Can you duplicate on site Blog Posts to Google Plus
I have read from an authorative source that you can duplicate your blog posts on your google plus account without issues as google knows that this is your 'property'. is this correct and what would be the value in doing so? until we have need sign posting new blog posts with a link. Ash
Link Building | | AshShep10 -
Are these links to my site bad?
I am the owner of two diffrent ecommerce sites. Lets call them A and B. Site A is a larg site with ower 5000 pages. In the footer off site A there is a link to site B. Is it bad for site B to get 5000 links (to homepage) from site A? Should i remove these types off links? Thanks for your help!
Link Building | | Spletnafuzija0 -
How can I find and fix my broken links
There are a number(110) links that SEOmoz has found to have 404 errors. I have been able to find and fix many of them but there are links that are coming from our home page that do not seem to exist. I cannot even find the links in our system in wordpress. Is there something obvious that I am missing? Is there a way to locate where the links are originating from?
Link Building | | careerealism0 -
Linking strategy between my own sites
Hi, I have one main site, let's call it food.com I also have 10 smaller sites, let's call them mexicanfood.com, indianfood.com, italianfood.com etc food.com is on its own separate dedicated server the 10 smaller sites are all on a shared IP in hostgator I don't want Google to think that I have created the 10 sites for only purpose of creating links to each other. So, would you recommend that all those 10 sites link to each other? or should there be no interlinking within those 10 same IP domains? What about linking from those 10 sites to my main site? How should I structure my own backlinks not to get penalized by Google ?
Link Building | | limens0 -
Which Directory Sites to Choose?
Hi All I am a newbie to SEO and have a quick Q. Assuming that appropriate steps would be to; a) Ensure all onsite matters are are correct, title tags, meta descriptions, redirects, canonical issues. b) Submit to Directories c) Build Links I am approaching step b) Which Directories are worth submitting to? For those which require payment, how can I decide which are value for money or should I just use SEOMOZ list of links and assume that theyre worth the $50 - $100 if my higher ranking competitors have links from these directories. Also, can this be looked opon as grey/black hat 'buying of links'? Thank you Sean www.pretavoir.co.uk
Link Building | | seanmccauley0