Categories
Tech

Joomla SEO on 1and1

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