.htaccess

[COLOR=“DarkOrchid”]A few months back, I received some very good advice from a few pros here, and one piece was to remove any mention of redirects from when I changed over from X-Cart. At the time I did check everything out and it seemed I did delete any reference. But today just out of curiosity I peeked at my .htaccess file. Can anyone tell me if the coding on the .htaccess below is correct ? I have 2 domains affectionately-yours & artstyle-caketops. There seems to be quite a bit more in this document than the one in the ArtStyle Caketops directory.



My traffic is down another 2/3 from when I made the above changes. I have gone from about 1000 visitors a day with X-Cart to between 100 & 200 presently. I really need some help !



Thanks much in advance[/COLOR] :slight_smile:





DirectoryIndex index.html index.php







SetOutputFilter DEFLATE











ExpiresActive On

ExpiresDefault “access plus 10 years”







RewriteEngine On



RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(..(js|css))$ smartoptimizer/?$1





RewriteCond %{REQUEST_FILENAME} -f

RewriteRule ^(.
.(js|css|html?|xml|txt))$ smartoptimizer/?$1







RewriteCond %{REQUEST_FILENAME} -f

RewriteRule ^(.*.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico))$ smartoptimizer/?$1







FileETag none






Some hostings require RewriteBase to be uncommented

Example:

Your store url is [url]http://www.yourcompany.com/store/cart[/url]

So “RewriteBase” should be:

RewriteBase /store/cart

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]



RewriteCond %{REQUEST_FILENAME} ./catalog/.

RewriteCond %{REQUEST_FILENAME} -d

RewriteCond %{REQUEST_FILENAME}/index.html !-f

RewriteRule . index.php?sef_rewrite=1 [L,QSA]







RewriteCond %{HTTP_REFERER} !^http://affectionately-yours.com/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://affectionately-yours.com$ [NC]

RewriteCond %{HTTP_REFERER} !^http://artstyle-caketops.com/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://artstyle-caketops.com$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.affectionately-yours.com/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.affectionately-yours.com$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.artstyle-caketops.com/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.artstyle-caketops.com$ [NC]

RewriteCond %{HTTP_REFERER} !^https://www.affectionately-yours.com/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^https://www.affectionately-yours.com$ [NC]

RewriteCond %{HTTP_REFERER} !^https://www.artstyle-caketops.com/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^https://www.artstyle-caketops.com$ [NC]

RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ - [F,NC]



order allow,deny

allow from all