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
-
New Website SEO Implications
Hi Moz Community, A client of mine has launched a new website. The new website is well designed, mobile friendly, fast loading and offers a far better UX than the old site. It has similar content but 'less wordy'. The old website was tired, slow, not mobile responsive etc but still ranked well. The domain has marketing leading authority and link metrics. Since the launch, the rankings for virtually every word has plummeted. Even previously ranked #1 words have disappeared to page 3 or 4. New pages have different URLs (301s from the old urls are working fine) and still score the same 98% (using the Moz page optimiser tool). Is it usual to experience some short term pain, or are these rankings drop an indication that something else is missing? My theory is that the new URLs are being treated like new pages, and that those new pages don't have the engagement data which is used for ranking. Thus, despite having the same authority of the old pages, as far as user data is concerned, they are new pages and therefor, not ranking well - yet. That theory would make logical sense but I'm hoping some experts here can help. Any suggestions welcome. Here's a quick checklist of things I have already done: complete 301 redirect list
Intermediate & Advanced SEO | | I.AM.Strategist
New sitemap
Submitted to console
Created internal links from within their large blog
Optimised all the new pages (img alts, H1s etc) Extra info: Platform changed from Wordpress to Expression engine
Target pages now on level 3 not level 2 (extra subfolder used)
Less words used (average word count per page from 400+ to 250) Thanks in advance 🙂0 -
Which is the best SEO plugin for joomla
Hey there, can any one please tell me the Best plugin i can choose For joomla?? I am going use sh404ref & 2nd one i am thinking is EFSEO. If besides This do u know any Good One, Please Help to choose Best Thanx in advance.
Intermediate & Advanced SEO | | poojaverify060 -
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 -
Meta refresh bad for SEO
Hi there, Some external developers have created a wishlist for a website that allows visitors to add products to a wishlist and then send an enquiry. Very similar set-up to a shopping basket really (without the payment option). However, this wishlist lives in a separate iframe and refreshes every 30 seconds to reflect any items visitors add to their wishlist. This refreshing is done with a meta refresh. I'm aware of the obvious usability issue that the visitor's product only appears after 30 seconds in their wishlist. However, are there also any SEO issues due to the refreshing of the iframe every 30 seconds? Please let me know, whether small or large issues.
Intermediate & Advanced SEO | | Robbern0 -
Question about using abbreviation
Hello, I have this abbreviation inside my domain name, ok? now for a page URL name, do you recommend me to use the actual word (which shortened form of it is inside domain name) in a page name? Or when have abbreviation in domain name, then using its actual word in a page name is not good? It's all about how much google recognize abbreviation as the actual word and gives the same value of word to it? do I risk not using the actual word? Hope made myself clear ) thanks.
Intermediate & Advanced SEO | | mdmoz0 -
SEO & Magento Multistore - I have been asked if "duplicatiing" a magento stor using its "Multistore" functionality will cause both to be picked up as duplicate content, can anybody help?
Hello all. I have been asked what the consequences of using Magento's "multistore" functionality are if we were to duplicate our entire magento store and place it on a secondary domain... The simple answer which comes to my mind is that it will be a flagged as duplicate content. However, is this still the case if the site were placed in a different country? The original being the UK the copy being Ireland (both English speaking) How would Google.co.uk & Google.ie treat these stores? Hope this is clear... our site is http://www.tower-health.co.uk
Intermediate & Advanced SEO | | TowerHealth0 -
Using PushState for Meta Data?
Wondering if anyone has had any experience using pushstate to update meta data on a AJAX page. What we are trying to is have one really long page that users can scroll through to see different portfolio pieces. We want each portfolio piece to be represented in Google as a separate page when they are technically all on the same page. An example of how the page will work is here:
Intermediate & Advanced SEO | | lsujoe
http://www.scozzese.com/2011/en/#annasafroncik If you notice you scroll down and the url will update for the next piece but you are still on the same page. So if we do this for meta title, meta description - will Google be able to recognize it? Any help to achieve quality results would be helpful! If I didn't explain anything clearly please let me know!0 -
How to use the information
I've just signed up and now I want to start using all the information that your site is providing. How do I go about it? I know how to get to the 'back end' of my site, Joomla (CMS) and can alter all the information. I just need to know how to implement all the data you give me. Sorry, but I am new to this.....
Intermediate & Advanced SEO | | Aim4fun0