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
-
Instructables site - follow and nofollow
Hi, I haven't been able to find a clear answer to this issue yet, so I'm posting here for help. I have just created a profile on the site Instructables - http://www.instructables.com/ as well as an article. The issue is that I could find most of the published articles there have follow links in them - e.g links under materials: http://www.instructables.com/id/How-to-Make-a-Reclaimed-Industrial-Coffee-Table/ - however mine is attributed nofollow links. I simply don't know why this is or if there is a way around it to get the links followed. This question only relates to the links in the articles, not the profile links - which are followed. Anybody knows? Thanks, Alex
Link Building | | alexddseo0 -
Links from coupon sites
Hi All, I post coupons on coupon sites a month ago and when I checked backlinks of my website I saw approx 1000 links coming from coupon sites on my Brand Name. IMO it is quite natural please share your views. *All the big brands listed on that coupon sites e.g amazon, dell etc Thanks
Link Building | | Alick3001 -
Site wide back links
Hi, One of our sites has a site-wide link from another site. So, Google sees 6700 pages from that site link to one of our pages. Is that something to be concerned about? The other site is http://www.daum.net/ We also have 2000 pages that blogspot.com links to us from. Both these sites have high domain authority, so I would hope all those links score well. But I certainly don't want to be penalized for links that appear spammy. Thank you in advance.
Link Building | | seotis0 -
Press Release Sites
I don't do that many press releases, but I need to do one soon. I had been using PRweb.com and I see they raised their prices. Are they considered the best online PR site or are there sites people have used that have gotten similar results for less money?? Thanks
Link Building | | ClickIt0 -
Multiple Sites Vs. Single Site
We're a growing law firm looking into expanding into different practices of law. The question we're running into is should we create new sites for our different practice areas or add them to our current site? If we create multiple sites we have to divide our linking building efforts, but if we maintain everything under a single domain will be harder to be considered an "expert" on each section of law and get ranked well in each category? Any insight would be greatly appreciated.
Link Building | | PewLaw0 -
How to make google index the page title has changed ?
Google has indexed all my websites, but I have to change some title in the website but when checking google does not update the change.
Link Building | | tuananh0688
Please help me .
My site : http://blog.addme.vn0 -
Inbound links from porn sites into a professional business services site - remove help?
The website in question was hacked four years ago and there was porn on the servers. It was used as a peer to peer torrent streamer. The images were deleted. We have just found inappropriate inward bound links (with great link juice!!) - how can we remove these links - or should we? any advice would be appreciated thanks
Link Building | | GardenBeet0 -
Value of a link from very large profile site
Hello We have an opportunity to get a link from a very large traffic site. It comes with a price tag, and Im wondering if it is worth it. Is it ok to mention the page and cost? It is the 5th largest internet site. Would be on their benefactors page. There are many other sites linking from the page, and its obvious they are on there for the link value. I know sometimes one link can do wonders for rankings, where thousands of others can not. But wondering if there is any way to quanitfy this. Is it worth it for the value of the backlink? If we link to the home page, the link juice (alot I hope) would pass through to the deeper pages, and increase their rankings for their target keywords? Thanks for your advise. Sam
Link Building | | Impact-2015550