Use of Apache mod_rewrite module for SEO?
-
I'm curious if anyone here running a large, complex, dynamic site has used the Apache server mod_rewrite module to simplify their site's URLs by rewriting them in a standard format.
The chief use of this module for SEO purposes would be to aid in canonicalization and reduce duplicate content. For example, you could easily convert all of you ALL CAPS or MixedCase URLs to lower case, change all "/index.html" URLs to just point to "/", change all word seperators to hyphens, and so on.
Any server-side ninjas out there with stories to tell?
-
If you're looking for truly apache mod_rewrite stories I cannot help, but I have implemented site-wide redirect schemes so that (for example) all URL's are put into Title Case, all folders are redirected to ensure trailing slash, and much more.
It made a big difference and is highly recommended. Our duplicate content (that google wasnt even reporting but that we saw with tools like the IIS SEO toolkit http://www.iis.net/download/seotoolkit) dropped to zero and shortly afterwards our traffic increased as a result of increased keyword ranking almost across the board.
Too many people ignore this.
-
I use Drupal CMS alot for my sites. It provides a simple .htaccess with mod_rewrite ON and examples. Also, if using drupal you can create alot of rules from the admin part (such as url aliases and 301 redirects) rather than in the file itself. So, you dont necessarily have to be a ninja to tweak all these settings.
Also alot of caching is done through mod_rewrite as when you cache the page to HTML and rewrite the path in .htaccess to use html cache when someone requests given url => speeds up the site , because it will not even need to touch a database and go directly to html file with cached data.
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
-
Javascript and SEO
I've done a bit of reading and I'm having difficulty grasping it. Can someone explain it to me in simple language? What I've gotten so far: Javascript can block search engine bots from fully rendering your website. If bots are unable to render your website, it may not be able to see important content and discount these content from their index. To know if bots could render your site, check the following: Google Search Console Fetch and Render Turn off Javascript on your browser and see if there are any site elements shown or did some disappear Use an online tool Technical SEO Fetch and Render Screaming Frog's Rendered Page GTMetrix results: if it has a Defer parsing of Javascript as a recommendation, that means there are elements being blocked from rendering (???) Using our own site as an example, I ran our site through all the tests listed above. Results: Google Search Console: Rendered only the header image and text. Anything below wasn't rendered. The resources googlebot couldn't reach include Google Ad Services, Facebook, Twitter, Our Call Tracker and Sumo. All "Low" or blank severity. Turn off Javascript: Shows only the logo and navigation menu. Anything below didn't render/appear. Technical SEO Fetch and Render: Our page rendered fully on Googlebot and Googlebot Mobile. Screaming Frog: The Rendered Page tab is blank. It says 'No Data'. GTMetrix Results: Defer parsing of JavaScript was recommended. From all these results and across all the tools I used, how do I know what needs fixing? Some tests didn't render our site fully while some did. With varying results, I'm not sure where to from here.
Intermediate & Advanced SEO | | nhhernandez1 -
SEO Migration Options
Hi Guys, We have a www.sitename.com.au domain name and looking to move into the US market, and other markets in the future such as UK, Canada, etc. We are reviewing our options. Currently the .com.au is ccTLD to Australia so won't perform well in US. It seems the best option at this stage is to get a generic domain Generic top-level domains (gTLDs) like a .com. Then create different sub-folders for each country for example: .com our main country .com/us/ target us .com/uk/ Then in Google Search Console don't set country targeting for entire domain but use Hreflang Tags to specify the targeting for each page? -- This seems like a complex strategy to execute so i just want to check if this would be a optional option? Any suggestions would be very much appreciated! Cheers.
Intermediate & Advanced SEO | | cerednicenko0 -
Seo for international sites
Hello, I have a question for the group, our main US site- http://www.datacard.com is utilized to move content to other regional sites like http://www.datacard.co.uk/ and http://www.datacard.fr/ and http://www.datacard.com.br/. Anyhow, we essentially have some regional content on those sites, but for ease of maintaining and updating the content we have a company translate this for us and then undergo an in country review for local people in our company to review the content. That being said the meta descriptions, titles, code, everything gets translated to that language. I know there are issue for SEO for these purposes as we get much better rankings with http://www.datacard.com. The regional sites are newer so this could be part of it. We don't have an agency helping us with SEo and i get a lot of questions on what can be done internally for this for regional sites with our current structure. Any tips you have? It would be greatly appreciated! Laura
Intermediate & Advanced SEO | | lauramrobinson320 -
Video seo stats
I've come across various places that give statistics for things like "Video search results have a higher click-through than plain text results. " and
Intermediate & Advanced SEO | | Gordon_Hall
"Video is 50 times more likely to get organic page ranks in Google than plain text results" How true are these and does anyone have a definitive guide to video SEO?0 -
SEO Best practice for competitions
I am considering running a competition and wanted to get some feedback on SEO Best Practice. We will have a unique competition URL - following the completion of the competition it will be 301'd to home page Every entrant will be given a unique URL for the competition to share, if someone enters using there URL they get an extra ticket. This means we will create a large number of new unique URL's over a short period of time, the pages however will have the same content. Is this potentially bad for Duplicate content?Any advice? Perhaps a canonical tag on all unique competition entrant URLs? Any other considerations?
Intermediate & Advanced SEO | | RobertChapman0 -
SEO - I just do not seem to get it
Hello All, I came to the forum two weeks ago and prior to that studied SEO until my brain almost melted two weeks before. Now, I've read some great articles here on SEOMoz which have been fantastic. Mainly being this one: http://www.seomoz.org/beginners-guide-to-seo. So anyway, I genuinely throught I got it about a week ago. Here's what I did: First I decided on my keyword: "PC Repair Sheffield". Then, I made a website and on-page optimizaed as best as I possibly could (Graded A on the SEOMoz on-page exam tool). So I decided firstly to add myself to the Independant newspaper Business Directory, because it's free and has a great domain authority. I then went to Yahoo answers, found a Question i knew the answer too and made a whole article on the question, I provided a really useful answer and put a link to my full answer in the 'Source' section. This was a NoFollow Link. Every week, I write a new article and put it in my 'Blog' page. In the articles, I like to cover some problem that I've encountered throughout the week, if, for example, I write about a Hard Drive I replaced in Sheffield, I write about that and link it to my 'PC Repair Sheffield' page. Every article contains a video from Youtube, which is another 'NoFollow' link. Past that, I just find forums which are preffereably not 'No Follow' links and try to help people by answering their questions, but putting more details on my site for them toi see, with a link. That is pretty much the extent of what I 'Get' so far. But I do read a lot of the posts on here and I'm always seeing the Experts on SEO criticise these things and say it's bad without actually explaining why, or how to improve this, or what to do instead in some kind of simple way? I mean, this blog i'm writing, is there really any point? It's unlikely anybody is going to see it, sharing it is just a rediculous assumption. Nobody shares a page on how to fix a hard drive from a local sheffield site. I don't think that NoFollow links are a waste of time, but that's my personal assumption. I think that makes it more natural in a way.. 'Write Fresh Content' and get natural links is a crazy suggestion, nobody is ever going to share it. It's just not the way the world works for small businesses. No task is easy, but none are impossible either, i know that I could do SEO, i'm just not entirely sure 'what to do'.
Intermediate & Advanced SEO | | Paul_Tovey0 -
SEO for eCommerce?
I'm working on a game plan for the on-page optimization for a growing e-commerce site (https://www.boutine.com) and I'm wondering if anyone has any experience with similar projects. Specifically, how to get the most SEO value out of product and category pages. Thanks in advance! -Adam
Intermediate & Advanced SEO | | boutine0 -
What are the SEO implications of a CNAME?
(please ignore ridiculousness of hypothetical situation) Lets say Amazon had a food division which was at food.amazon.com. I partnered with Amazon's food division and now food.amazon.com will point to my website (food.com). Amazon adds a CNAME record so food.amazon.com resolves to food.com. If food.amazon.com has built up significant page rank / domain authority, will food.com be getting those benefits? Also, lets say food.amazon.com/rice has a lot of PR / authority -- will food.com benefit from the value of those internal pages?
Intermediate & Advanced SEO | | chadburgess0