LevelTen Interactive

Simple .htaccess Hack for Drupal SEO

Follow Me On Twitter

On a fresh install of Drupal, you'll encounter issues with how your website's domain can be accessed. Out of the box, you'll be able to access your site both with and without the "www" prefix. This can be a problem for SEO, as the potential exists for search engines to think your website contains duplicate content, even when it doesn't. This isn't a fix that will lead to dramatic improvements, but it's a good SEO best practice for Drupal sites.

Step 1: Find Your .htaccess File

This file will be located in the directory where you installed Drupal.

wheresthehtaccess.jpg

Step 2: Download to Your Desktop and Edit

Use your favorite HTML editor.

Step 3: Find the Code

Should be around line 80.

heresthecode.jpg

Step 4: Edit the Code

Uncomment (delete the # from lines 87 & 88) and adapt (change "example.com" to your domain, be sure to leave any other characters such as the "^" or "\")

thisiswhatyouchange.jpg

Step 5: Upload and Replace

And you're done! No matter how you type in your domain, it should all redirect to the "www" version.

Your rating: None Average: 6 (4 votes)
Login or register to tag items

An Abercrombie And Fitch

An Abercrombie And Fitch employee in northern California is alleging she was fired for refusing to remove her hijab, or headscarf marking her Muslim observance. Abercrombie pursuit of a homogeneous army of "perfect" employees appears to have snared it again!

Abercrombie Clothing to the AP, "the Council on Abercrombie UK Relations said Wednesday it filed an Equal Abercrombie London Opportunity Commission complaint on behalf of Hani Khan." Abercrombie Fitch says she was told she would be allowed to wear a Abercrombie Outlet, but a visiting district manager disputed that. She says she was fired when she refused to take it off.

In 2008, an Abercrombie And Fitch accused Abercrombie of refusing to hire her because her head scarf "didn't fit the chain's image." That lawsuit, filed last year, is still in progress.

Abercrombie in the company's serious on-the-ground sensitivity issues: Abercrombie Clothing to let a woman help her autistic sister try on Abercrombie UK, for which they were fined $115,264, and banishing an employee with a prosthetic arm from the store floor. That employee, Riam Dean, was awarded £8,000 for unlawful harassment, although the tribunal ruled that she hadn't suffered disability discrimination.

Abercrombie London has a well-documented mission of selling its idea of youthful physical perfection, Abercrombie Fitch the Bruce Weber ad campaigns to the employees that fit its ideal of American beauty. The company conceded that that ideal didn't include black, Abercrombie Outlet, and Asian employees in 2004 when it paid $40 million to employees and job applicants of those demographics to settle a class-action federal discrimination lawsuit. They had been accused of "engaging in recruiting and hiring practices that exclude minorities and adopting a virtually all-white marketing campaign."
ed hardy ed hardy
ed hardy clothing ed hardy clothing
ed hardy shop ed hardy shop
cheap ed hardy cheap ed hardy
ed hardy uk ed hardy uk
ed hardy sale ed hardy sale
ed hardy clothes ed hardy clothes
ed hardy outlet ed hardy outlet

ed hardy ed hardy
ed hardy clothing ed hardy clothing
ed hardy shop ed hardy shop
cheap ed hardy cheap ed hardy
ed hardy uk ed hardy uk
ed hardy sale ed hardy sale
ed hardy clothes ed hardy clothes
ed hardy outlet ed hardy outlet

very Useful

the information u have given its so much useful

Research papers

From my understanding

4.2

From my understanding duplicate with and without www isn't that much of a problem any more, right or wrong?

auto insurance quotes

How bad is it?

5.6

From my understanding duplicate with and without www isn't that much of a problem any more, right or wrong?

Mia
Me

i learned from this trick

i learned from this trick alot that was very nice of you thanks again for htaccess secret Term Paper Help | Thesis Help

cPanel you need to make sure

cPanel you need to make sure you have marked the option to show dot-files such as .htaccess.
Dissertation Help | Essay Help | Research Paper Help

Ht acess common mistake

most people do not know how to properly set up their ht access file and make the same mistakes.. be careful. oh and great post!

Very Nice

Thanks for the post, i learned from this trick alot that was very nice of you thanks again for htaccess secret

Simple but brilliant

Thanks, this is simple to do but brilliant.
When you access the File Manager i cPanel you need to make sure you have marked the option to show dot-files such as .htaccess.

simplicity

Ofentimes, simplicity = brilliance...

Added to DrupalSightings.com

Syndicate content

© 2009 LevelTen Interactive - Dallas, TX