I am new to joomla so I am still testing it on my site along with components like JoomSEF. Joomla installed easily and works perfectly, but when I turned on the Joomla core SEF I had to change the .htaccess file as shown below.
[size=4]
[color=#0000FF]
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
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/$1$2
[/color]
[/size]
You'll notice the rewrite rule has been changed and the RewriteBase is set to "/"
After installing JoomSEF, the frontpage loaded with SEF urls but all SEF urls ending with ".php" reloaded the frontpage and all SEF urls ending with a ".html" returned a 404 page. After a couple days of tinkering I got everything to work,
but would like to know if anyone can explain why it only works with the .htaccess file shown below and how I might be able to fix it to work as it should.
[size=4]
[color=#0000FF]
Options +FollowSymLinks
RewriteEngine On
RewriteBase /subdirectory/
RewriteCond %{REQUEST_URI} ^(/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
[/color]
[/size]
You'll notice I had to change the RewriteBase to the subdirectory that my domain already points to. "
www.mydomain.com/" goes to my homepage. The subdirectory is in the main www directory for my netfirms account. Also, in order for all the SEF urls to redirect properly, I had to change the file suffix in the JoomSEF configuration to ".php"
The server is Apache with php running as a cgi.