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

19 replies on “Joomla SEO on 1and1”

Thanks for this. The above still works for 1&1 in the UK in April 08.

Why does it work when you uncomment the 3rd party stuff, even tho not using 3rd party?

Weird

That is definitely true about this comments- Joomla SEO on 1and1 actually I am using Joomla for last few days and goes nicely

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.

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.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *