Updating .htaccess file for SH404SEF E-mail

This information will work with just about all 3rd party search engine friendly URL extensions for Joomla.

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


########## Begin - 3rd Party 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


For my host (1and1) I had to also change the following:

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

FROM:
#RewriteBase /

TO
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



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.

Comments

Name *
Email (For verification & Replies)
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment