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
-
Does the url in for your homepage impact SEO
Is there any harm to SEO having a homepage url that is not clean like www.domain.com. For example citi uses https://online.citi.com/US/login.do Does that matter in any way? Would a company like citi benefit from changing to www.citi.com as their homepage?
Intermediate & Advanced SEO | | kcb81781 -
Anyone used Fatjoe?
Interested to know if anyone has used or using Fatjoe content/blogger outreach. Seems fairly expensive, but reasonable quality. Reviews or comments welcome. Thanks Richard
Intermediate & Advanced SEO | | seoman100 -
Looking for SEO advice on Negative SEO attack. Technical SEO
please see this link https://www.dropbox.com/s/thgy57zmmwzodcp/Screenshot 2016-05-31 13.25.23.png?dl=0 you can see my domain is getting tons of chinese spam. I have 410'd the page but it still keeps coming.. 7tnawRV
Intermediate & Advanced SEO | | mattguitar990 -
How and When Should I use Canonical Url Tags?
Pretty new to the SEO universe. But I have not used any canonical tags, just because there is not definitive source explaining exactly when and why you should use them??? Am I the only one who feels this way?
Intermediate & Advanced SEO | | greenrushdaily0 -
Technical SEO
Where can I find knowledge of enhanced and technical SEO for all type of websites ( mainly E-Commerce)? Please share some good sources (PDFs, Videos, Checklist etc)
Intermediate & Advanced SEO | | Obbserv0 -
SEO transfer to new website
My website currently has some strong SEO and i will be re-developing the website on a wordpress platform...which will change many of the existing URL. Will this affect the current pages that are well indexed in Google? Does using Wordpress or changing the URL extension (.html to .php) make a difference? If i want to make a clean transition without effecting our existing SEO...what are some essential steps i need to take? Example. Current page is www.mydomain.com/name.html .... and the new URL would be www.mydomain.com/product/name.php Thanks
Intermediate & Advanced SEO | | Souk0 -
Are backlinks the most important factor in SEO?
I have had an agency state that "Backlinks are the most important factor in SEO". That is how they are justifying their strategy of approaching bloggers. I believe there are a lot more factors than that including Target Market definition, Keyword identification an build content based on these factors. What's everyone's thoughts?
Intermediate & Advanced SEO | | AndySalmons0 -
Use of Rel=Canonical
I have been pondering whether I am using this tag correctly or not. We have a custom solution which lays out products in the typical eCommerce style with plenty of tick box filters to further narrow down the view. When I last researched this it seemed like a good idea to implement rel=canonical to point all sub section pages at a 'view-all' page which returns all the products unfiltered for that given section. Normally pages are restricted down to 9 results per page with interface options to increase that. This combined with all the filters we offer creates many millions of possible page permutations and hence the need for the Canonical tag. I am concerned because our view-all pages get large, returning all of that section's product into one place.If I pointed the view-all page at say the first page of x results would that defeat the object of the view-all suggestion that Google made a few years back as it would require further crawling to get at all the data? Alternatively as these pages are just product listings, would NoIndex be a better route to go given that its unlikely they will get much love in Google anyway?
Intermediate & Advanced SEO | | motiv80