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.
Options FollowSymLinks
RewriteEngine On
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)
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
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?