Forum Moderators: phranque

Message Too Old, No Replies

help with .htaccess configuration

         

Brennie

5:50 pm on Mar 12, 2010 (gmt 0)

10+ Year Member



Hi, my first post! Not sure where else to post this topic.

Ok here's my sitch... I have 7 sites on my hosting account. The main domain on my account is an ecommerce utilizing a shopping cart. The shopping cart has an SEO Friendly URL feature which I have enabled. I know enabling this has affected my .htaccess file.

I also have created custom error pages for all 7 sites, however these are not working. I had contacted my hosting company support, & they made a change to the .htaccess file in my main domain root. This change allowed my custom error pages to work, however it somehow disabled the SEO Friendly URL feature on my main domain/shopping cart.

My hosting company support is not very good, as they tell me they can't provide any coding help.

I have no idea how to change my .htaccess files to have both of these working (also, I had previously tried enabling hotlink protection in my control panel & this caused the same problem with the SEO feature so I have disabled it, but would still like to use it if I can).

Here's what's in my root .htaccess file:

DirectoryIndex index.html index.php

<IfModule mod_rewrite.c>
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is http://www.example.com/
# So "RewriteBase" should be:
# RewriteBase /store/cscart
#RewriteBase /
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]

<Files 403.shtml>
order allow,deny
allow from all
</Files>

#RewriteEngine on

suPHP_ConfigPath /home/username/public_html/php.ini


Any help would be greatly appreciated!

~Brennie

[edited by: phranque at 2:14 am (utc) on Mar 13, 2010]
[edit reason] URLs [webmasterworld.com] [/edit]

MichaelBluejay

8:32 pm on Mar 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try putting your <Files></Files> code above the <IfModule...> line.