Put your message here! Contact me for more information
 
 








 

It took me awhile to figure out how to Joomla SEO to work with 1and1. I have a business hosting account for my main Hoavui.com.

Directory Structure:
A joomla site (1.0.8) is installed in /sites/warsofearth.com/ for my Wars of Earth site. www.warsofearth.com is pointing correctly to /sites/warsofearth.com/.

Setting up the .htaccess
Rename the htaccess.txt file bundled with the installation to .htaccess. Some people say chmod it to 777 if somehow thing doesn’t work.

Make sure your .htaccess file are similar to this. Note that RewriteBase is relative to the URL of the site, not the absolute path! Took me a while to figure out.

## 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


 

23 Responses to “Joomla SEO (Clean URL) with 1and1



12:54 pm
July 19, 2006
#59

Thank you SO MUCH for this. I have been stumped for quite a while. Thanks for contributing to Joomla and Open Source. Would it be alright if I post this in Joomla Forums with credit to you?




6:34 pm
July 19, 2006
#60

Josh,

Not a problem! At least my post can be helpful to you. Please feel free to share this to anyone! 1and1 is awesome for Joomla and general web hosting so I’m glad that I can help.

- Alex




7:40 pm
October 30, 2006
#1816

Thank you so much! I was able to get it to work - even without chmod 777. This was done on the most recent version 1.0.11




8:53 pm
October 30, 2006
#1819

@sam,

You’re very welcome. It’s good to know that you have confirmed that the above solution works with Joomla 1.0.11. Very cool!

Alex




3:04 pm
January 12, 2007
#13308

Works great! Just used it for a client of mine. Thank you!




11:14 am
January 31, 2007
#15203

FANTASTIC!! This .htaccess bid’ness can be a royal pain. Seems like different hosts want different things.

This worked like a charm for me.




11:00 am
March 18, 2007
#19133

Alex

YOO DA MAN!!! :)

I have liked how smoothly the Joomla install went and now with these adjustment the SEF stuff is working great as well…

THANK AGAIN!!

-Mike Davis




12:40 pm
August 3, 2007
#48263

Nice post!
Thanks :-)




ernan
11:22 pm
September 25, 2007
#60221

you’re a life saver. I just transfered my hosting in 1and1 and it really give me a headcahe installing joomla. thank you very much. it worked with my joomla 1.0.13




3:46 pm
October 8, 2007
#63949

you saved my life and hours of searches.
Thanks for this




Eric
7:36 am
October 16, 2007
#66284

damn you are the man.




Gom
9:43 pm
November 27, 2007
#82415

Worked like a charm. Now I can get a good night’s sleep instead! :) Thanks, Alex.




9:43 am
December 3, 2007
#84383

Great work! It’s working on my client site: http://www.businessweekly.co.uk/
Thanks you very much!




6:18 am
February 10, 2008
#114163

THANKS VERY MUCH!!!




Ben
2:24 am
March 2, 2008
#124038

I can not express to you my gratitude but to say….

Thank you!




Bryon
3:37 pm
March 6, 2008
#126031

Hello, I tried to use your sample htaccess file with no luck… I’m using 1and1 too, and it doesn’t seem to work for me. Any suggestions?




12:41 pm
March 16, 2008
#129923

Bryon - what version of Joomla are you using, are you using a 3rd party or standard SEF and finally is Joomla installed in your root directory (i.e. http://www.yourdomainname.com/http://www.yourdomainname.com/Joomla/?

I have a few clients on 1and1.com and do not have any problems.




8:11 am
March 19, 2008
#131234

Can there work with non-apache web servers? and do I need to create the subfolder called /sites? Thanks




8:46 am
March 19, 2008
#131237

@John,
The .htaccess file is Apache-only so no, you can’t use this for IIS or other webservers. I just created the /sites folder to keep the clutter to a minimal in my host space. You don’t have to, but it would be easier to manage different sites in the long run.




4:19 pm
April 24, 2008
#147023

Thanks this worked out well. I am new to Joomla but quickly learning the ropes. This helped. http://www.marblefallsmarketplace.com




11:28 am
June 3, 2008
#164120

thank you thank you thank you! I’ve been banging my head on the wall for weeks about how to do this and you’ve just saved me changing provider! I had assumed it just couldn’t be done!




3:47 pm
September 7, 2008
#208558

Thanks buddy. You helped me out.




11:30 am
September 10, 2008
#209694

Thanks,

my problem was I was setting the RewriteBase to the absolute path of the site!

Thank you so much SEO is AWESOME!




 

Leave a Reply