richardk wrote:Do you have a .htaccess file with mod_rewrite already? If you do, post it and say where it is.
First off, thank you for the reply.
Mod_Rewrite is enabled through Apache's httpd.conf file and it functions properly. The base install uses the following URL structure...
www.mydomain.ca/joomla/index.php/about
whereas my URLs are now structured...
www.mydomain.ca/joomla/about
.htaccess is located in the htdocs folder within the Joomla directory - (apps\joomla\htdocs\.htaccess). Saving the file here let me get rid of the 'index.php', which was included within the URLs. However, it is interesting that you brought the placement up, as I've been tempted to save a copy of that file up one level - at apps\joomla\.htaccess
Attached you will find my (almost) complete .htaccess file. I removed the header data as I don't imagine you are much interested in Joomla's copyright info, or in the 'use a # to ignore a line' info. Let me know if you would like that header - it is some exciting reading...=)
The one argument I'm especially curious about is 'Rewrite base /joomla' When I remove it, I get 'page not found' errors, but I can't logically understand why I'm adding in the /joomla when I want to remove the /joomla from the visible URLs....
-----------------------------------------
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /joomla
########## 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