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
-
Quick SEO Audit of my site.
Hello, I hope you are doing great. I am working on a website that is related to flea collars for cats and dogs. And I want you to make a quick audit of the site where am I lacking. It could be great if you can help ASAP. You can view my site here :
Intermediate & Advanced SEO | | Request4peace0 -
Multi Store SEO Drop
I have two stores (thespacecollective.com and thespacecollective.com/us) and over the past month the keyword rank for the US store had dropped by half, while the UK store is relatively the same. The content is mostly the same, except the US site uses US spelling. I assumed that this would not be flagged as duplicate content because it is the same site, just serving two locations. I'd be interested to hear some thoughts on the reason for this drop and how I might fix it.
Intermediate & Advanced SEO | | moon-boots0 -
How to use Rich Snippets?
Hi there! I have been hearing a lot about Rich Snippets lately but I don't really know how they work. Are they a very important factor to consider for SEO? I would love to know your thoughts about this. Thanks!
Intermediate & Advanced SEO | | lucywrites0 -
No content using Fetch
Wooah, this one makes me feel a bit nervous. The cache version of the site homepage shows all the text, but I understand that is the html code constructed by the browser. So I get that. If I Google some of the content it is there in the index and the cache version is yesterday. If I Fetch and Render in GWT then none of the content is available in the preview - neither Googlebot or visitor view. The whole preview is just the menu, a holding image for a video and a tag line for it. There are no reports of blocked resources apart from a Wistia URL. How can I decipher what is blocking Google if it does not report any problems? The CSS is visible for reference to, for example, <section class="text-within-lines big-text narrow"> class="data"> some content... Ranking is a real issue, in part by a poorly functioning main menu. But i'm really concerned with what is happening with the render.
Intermediate & Advanced SEO | | MickEdwards0 -
Blog home page and SEO
Why do most blog owners not put content that is unique to the home page above the fold before posts begin?
Intermediate & Advanced SEO | | BobAnderson0 -
Newsletter module in joomla
I have a newsletter module on my website on many of my website and was wondering if google boot see this module a a link or no ? I noticed this module has its own website that google has when I do site : mywebsite.com Thank you,
Intermediate & Advanced SEO | | seoanalytics0 -
Mobile SEO? Do we need it or not?
Hi Guys, I am about to start to redesigning a new mobile website and am curious if mobile SEO is actually having an affect or not. The site I am doing the redesign for, already has a very well optimized desktop site and has an existing mobile website with no optimization. The mobile website is ranking well in Mobile search so I am curious why I I would need to optimize the new mobile website properly, especially when the mobile website has a canonical tag for its desktop counter part? Love to get everyone's thoughts on this & where they see mobile SEO going in the next 12 months.
Intermediate & Advanced SEO | | seekjobs0 -
How to use Video sharing sites for SEO ?
How to use Video sharing sites for SEO ? There are many video sharing sites like Youtube,vimeo,flickr ect .How to use them properly for boosting ranking of a web site using videos.as i can see only youtube and vimeo can add url of web site in description area so how to use videos on others sites .
Intermediate & Advanced SEO | | innofidelity0