I had some issues using the first set of instructions I found for setting up Search Engine Optimization (SEO) on my 1and1 account.  I had renamed the htaccess.txt to .htaccess and made some small changes, but I was still having issues.  The information below got me up and going.

Setting up .htaccess file
Rename the htaccess.txt file bundled with the installation to .htaccess.

You will need to make a few changes to the .htaccess file so it is configured correctly.  The change descriptions are noted in bold below. Also, note that RewriteBase is relative to the URL of the site, not the absolute path. If you have Joomla! setup in the root directory, this shouldn't be an issue for you.

## Can be commented out if causes errors, see notes above.
Options FollowSymLinks
RewriteEngine On
# Uncomment following line if your webserver’s URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)
# Uncomment this line
RewriteBase /

#comment all of the lines of the below section
########## Begin Standard SEF Section
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
##RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
########## End Standard SEF Section

# Uncomment all lines
########## Begin 3rd Party or Core SEF Section
RewriteCond %{REQUEST_URI} ^(/vietnam/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
########## End 3rd Party or Core SEF Section


Load Previous Comments
  • Thanks, you're my hero. I've been trying for ages to get this working on a website im building for someone. You're now my hero!

  • Also when customizing htaccess file you can ad custem redirects form non www to www and backwards.

  • SEO Company

    If the host is down when Googlebot tries to access your pages, then those pages may disappear from the index until Googlebot can crawl them again. In webmaster tools, do the pages you want indexed appear in the crawl errors section? If so, then Googlebot was unable to access them.

  • still i m having problem on one of my site on joomla to ocnvert the links to SEO friendly i tried a lot but everytime it shows error . Can u give more info on it in simple way.Please!
    THANKS

  • Your joomla seo url rewrite is excellent, it helps a lot for search engine optimization.

  • Lancaster SEO

    Thank you for sharing this information and tips.

  • joomla seo

    basic purpose of the .htaccess file here is to Rewrite the cryptic URL’s from a dynamic content management system to more readable URL’s

    For Apache to be able to do that, it needs to know some things about the URL Joomla produces and how they should be handled

    These information is stored in the .htaccess file.

  • Such a fantastic article, it really helps in gaining traffic to your website, Thank you so much for posting!
    Read More

  • seo sydney

    Great information for me! I am using Joomla for last few days and goes nicely! Thanks!

  • Joomla vs WordPress

    Great post man. I've been pulling my hair out trying to get on page SEO elements configured for a Joomla client. Definitely WAY easier on WP sites.

Add comment

About Me

Josh Lyon Profile Picture

Name: Joshua Lyon
Birthday: August 8, 1985
Location: Valley Ranch (Irving), TX
E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.
ProfilesGoogle, Twitter