| Updating .htaccess file for SH404SEF |
|
|
You should see the something similar to the following code in your .htaccess file(htaccess.txt if you haven't yet renamed it) - if not, make sure you've installed joomla properly, and enabled SEF from global configuration settings. Comment out the first half (from 'Begin - Joomla! core SEF Section' to 'End - Joomla! core SEF Section'). (all #'s in front of commands). The second half (for third party) should be uncommented. Mine looked like this, and most installations should work with this code. Feel free to copy and paste it over what you have for your SEF section, but remember to backup the file. Finally, upload the new .htaccess file. (note, if you haven't set your FTP program to view hidden files you will not be able to see this file)
# UNCOMMENT WHEN UNINSTALLING 404SEF ########## Begin - Joomla! core SEF Section # #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_URI} !^/index.php #RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] #RewriteRule (.*) index.php #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] # ########## End - Joomla! core SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc # 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 # ########## End - 3rd Party SEF Section
# Uncomment following line if your webserver's URL FROM: RewriteBase / Hope this helps, click the following link to return to the main article: Installing sh404SEF on Joomla 1.5, and configuring custom error pages |












Comments