ravt
1
Hi,
I am trying to enable this addon called SEO addon under cs cart ultimate version 4.0.2
Well I placed this bit in the .htacess file
DirectoryIndex index.html index.php
RewriteEngine on
Pleas note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon.
Some hostings require RewriteBase to be uncommented
Example:
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]
Still not able to achieve this. any suggestion guys how to activate this
Hi @ravt,
I have copied the content of the htaccess file from one of our websites (ver 4.0.3). Please try it out.
```php
DirectoryIndex index.html index.php
AddEncoding gzip .gz
RewriteCond %{REQUEST_FILENAME} .(js|css)$
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.)$ $1.gz [QSA,L]
.css.gz$>
ForceType text/css
Header set Content-Encoding: gzip
Header set Cache-control: private
.js.gz$>
ForceType text/javascript
Header set Content-Encoding: gzip
Header set Cache-control: private
Header set Access-Control-Allow-Origin ""
RewriteEngine on
Pleas note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon.
Some hostings require RewriteBase to be uncommented
Example:
So “RewriteBase” should be:
RewriteBase /store/cart
RewriteBase /
Options -MultiViews
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule api/(.)$ api.php?_d=$1&ajax_custom=1 [L,QSA]
RewriteCond %{REQUEST_URI} .(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff)$ [or]
RewriteCond %{REQUEST_URI} store_closed.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.?)/(.*)$ $2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L,QSA]
```
ravt
3
thanks @ecomlab your much helpful down here. Thanks for putting your time here to help others.
ravt
4
still it shows same warning message… I have raised ticket with my hosting provider. Lets hope what will be there answer.
thanks for the time @ecomlab