Can't enable SEO Addon in CSCart Ultimate

I’ve search the forums and searched Google and haven’t been able to figure out why this won’t work. I’ve enabled this on other CS-Cart Professional installation and this is my first CS-Cart Ultimate installation so I’m not sure if there is something special I need to do. Whenever I click to enable the SEO Addon I receive the following warning:


[quote]SEO-friendly URLs are disabled. Check your web server and URL manipulation engine settings.[/quote]



Below is my .htaccess file in the root of my CS-Cart installation:

<br />
DirectoryIndex index.html index.php<br />
<IfModule mod_rewrite.c><br />
	    RewriteEngine on<br />
	    RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$<br />
	    RewriteCond %{REQUEST_FILENAME} !-f<br />
	    RewriteCond %{REQUEST_FILENAME} !-d<br />
	    RewriteRule . index.php?sef_rewrite=1 [L,QSA]<br />
</IfModule><br />

```<br />
<br />
I saw as I was installing the Ultimate Edition that at the end it mentioned something about editing the acme/.htaccess file if I want to use the SEO addon. However I don't know what I need to change in this file:<br />
<br />
```php
<br />
<IfModule mod_rewrite.c><br />
	    RewriteEngine on<br />
	    RewriteRule ^(.*)$ ../$1 [L,QSA,E=DOCUMENT_ROOT:%{SCRIPT_FILENAME}]<br />
</IfModule><br />

```<br />
<br />
Any help would be appreciated. <img src="upload://iKNGSw3qcRIEmXySa8gItY6Gczg.gif" class="bbc_emoticon" alt=":grin:">

Hello Steven,



Thank you for your message.



First of all, I suggest that you should follow instructions in this Knowledge base article:



[url=“CS-Cart Documentation — CS-Cart 4.15.x documentation”]CS-Cart Documentation — CS-Cart 4.15.x documentation



If it does not help you, please contact us via Customer Help Desk and provide temporary access to your server by clicking on the Add record link on the Access information page of your Help Desk account so that we could examine the issue.



Thank you.





Pavel Zyukin

CS-Cart Support team

Did you remove

<br />
if (isset($_REQUEST['version'])) {<br />
die(PRODUCT_NAME . ': version <b>' . PRODUCT_VERSION . ' ' . PRODUCT_TYPE . (PRODUCT_STATUS != '' ? (' (' . PRODUCT_STATUS . ')') : '') . (PRODUCT_BUILD != '' ? (' ' . PRODUCT_BUILD) : '') . '</b>');<br />
}<br />

```<br />
from file init.php<br />
<br />
If yes, add it back and after the seo addon is enabled you can  do everything  <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)"><br />
<br />
---<br />
Valentin

[quote name=‘CS-Cart Support team’ timestamp=‘1368786359’ post=‘161941’]

First of all, I suggest that you should follow instructions in this Knowledge base article:



[url=“CS-Cart Documentation — CS-Cart 4.15.x documentation”]CS-Cart Documentation — CS-Cart 4.15.x documentation

[/quote]



I’ve followed this and still receiving the error. I know it’s not the server as I have other CS-Cart Professional installations running on this server with the SEO Addon enabled.




[quote name=‘Vali’ timestamp=‘1368808471’ post=‘161981’]

Did you remove

<br />
if (isset($_REQUEST['version'])) {<br />
die(PRODUCT_NAME . ': version <b>' . PRODUCT_VERSION . ' ' . PRODUCT_TYPE . (PRODUCT_STATUS != '' ? (' (' . PRODUCT_STATUS . ')') : '') . (PRODUCT_BUILD != '' ? (' ' . PRODUCT_BUILD) : '') . '</b>');<br />
}<br />

```<br />
from file init.php<br />
<br />
If yes, add it back and after the seo addon is enabled you can  do everything  <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)"><br />
[/quote]<br />
<br />
I've tried commenting out this code and enabling the Addon and still received the error. I've now uncommented those lined and tried again to no avail.<br />
<br />
However I was able to force it on! I went into addons/seo/schemas/settings/actions.post.php and replaced it with the following:<br />
```php
<br />
<?php<br />
/***************************************************************************<br />
*																		  *<br />
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev    *<br />
*																		  *<br />
* This  is  commercial  software,  only  users  who have purchased a valid *<br />
* license  and  accept  to the terms of the  License Agreement can install *<br />
* and use this program.												    *<br />
*																		  *<br />
****************************************************************************<br />
* PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *<br />
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.		    *<br />
****************************************************************************/<br />
<br />
if ( !defined('AREA') ) { die('Access denied'); }<br />
/**<br />
* Check if mod_rewrite is active and clean up templates cache<br />
*/<br />
function fn_settings_actions_addons_seo(&$new_value, $old_value)<br />
{<br />
fn_clear_cache();<br />
return true;<br />
}<br />
?><br />

```<br />
<br />
I simply just removed the check and everything is working just fine. <img src="upload://tbe1CncrrOs48cXpHvziOT8r0T3.gif" class="bbc_emoticon" alt=":mrgreen:">

Thanks valentin for your help!

@StevenMattera

I just went to /app/addons/seo/schemas/settings/actions.functions.post.php

and comment the following code at fn_settings_actions_addons_seo

function fn_settings_actions_addons_seo(&$new_value, $old_value){
    // if ($new_value == 'A') {
    //     Http::get(Registry::get('config.http_location') . '/catalog.html?version');
    //     $headers = Http::getHeaders();
//     if (strpos($headers, '200 OK') === false) {
//         $new_value = 'D';
//         fn_set_notification('W', __('warning'), __('warning_seo_urls_disabled'));
//     }
// }


fn_clear_cache();


return true;

}

Thats solved my issue then spent many hours digging.