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
-
Lightboxes and SEO
Do lightboxes (AKA popup boxes when you click "learn more" type CTAs) have any negative effect on SEO? We are looking at revamping our sites to have more of a tiled approach, and a lightbox with summary content popping out with additional CTAs, directing to pages with more information or free trial pages. Is there any downside to this approach from an organic perspective? is there anything specific to keep in mind when creating these if not?
Intermediate & Advanced SEO | | Chris81980 -
Magento Store Using Z-Blocks - Impact on SEO?
Hi Guys, I have a question relating to Z-Blocks in Magento. Our Magento store uses a lot of Z-Blocks, these are bits of content that are switched off and on depending on a customer’s user group. This allows us to target different offers and content to new customers (not logged in) and existing customers (logged in). Does anyone have any experience in how this impacts SEO? Thanks in advance!
Intermediate & Advanced SEO | | CarlWint0 -
Using Canonical on home page
Our home page has the canonical tag pointing to itself (something from wordpress i understand). Is there any positive or negative affect that anyone is aware of from having pages canonical'ed to themselves?
Intermediate & Advanced SEO | | halloranc0 -
SEO for a redirected domain name
Our client is a law firm with a name that is challenging to spell. We have procured a domain name for them that is catchy, easy to spell, and plays well into their brand, or at least the current campaign. We're using the campaign domain to direct traffic to their website with a 301 redirect. We have placed the campaign domain in a variety of offline mediums including print and outdoor. The client is currently in the number 1 spot for a good number of our highest priority keywords, so I do not want to do anything to jeopardize that. I'm also not sure this campaign will be their "brand" long-term so I don't want to risk making a switch and making it back. So for now, I'm most comfortable leaving the campaign domain as a redirect to their primary domain. Recently, the client approached me complaining (legitimately) that when people google the campaign domain, they are brought to search results for an entirely different domain because Google "corrects" the domain name for them. This is obviously a bad thing, with many users defaulting to entering urls into Google instead of the address bar. If you tell Google that it was wrong about the autocorrection, our site is in the number 1 position. I liken the situation to Overstock.com using O.co as their offline domain, but overstock.com as their online domain. But imagine if you googled o.co and google brought you to a list of results for "on.co" because it assumed you fat-fingered it. Is there anything I can do to prevent the domain name from getting corrected by Google?
Intermediate & Advanced SEO | | steverobinson0 -
Pop Up Advertisement - Bad for SEO?
So i have been working with a company running their SEO for close to two years now. Since i started to engage with them they have always used a very simple pop up for the first time an end user visits their website (via javascript and cookies). The pop up simply ask them if they would like to download a solutions brochure from their website. So as far as pop ups go, it is at least relevant. The client loves this pop up, i do not. For a while we have always held spots #1-3 for a lot of our keywords but we have started to drop to lower on the first page. So i have been researching to see if some of the new algorithm changes are targeting sites with this type of functionality. If i have some data i could definitely get them to remove it. So the question is, do pop-ups hurt your organic ranking? Thanks for the input! Kyle
Intermediate & Advanced SEO | | kchandler1 -
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 -
Seo Hosting
Can anyone suggest me some seo hosting providers?But in better price like hostgator?
Intermediate & Advanced SEO | | nyanainc0 -
Would the use of
Hi, I am wondering on you through relevant to SEO in the following situation. I have a "travel" website and obvisouls as part of that I have a whole list of desitinations. So I have a drop down in my page navigation, which lists all my desitinations. At the moment I see have 2 main options to display the lists as follows: 1/. Perfect Anchors, but not good for usability - IE repeating the word "holiday in a list of 100 destinations, looks spammy for one, and when the headline says "Holiday Destinations", then from a use perspective its pretty pointless and takes away from navigation rather than improves it".
Intermediate & Advanced SEO | | James77
New York Holidays
Las Vegas Holidays 2/. Non Perfect Anchors - But better for usability
New York
Las Vegas So I am thinking - would the use of the title attribute provide a perfect solution?? Or am I wasting my time with this and it is just pointless considering it as an option. EG - what I had in mind was:
3/. Ideal Solution for both SEO and usability??
New York
Las Vegas Thanks for you help in advance.0