Seo Problems 2.0.5

We are trying to activate the SEO Add on and getting an error message which consists of this…



SEO URLs can’t work for now - they were disabled. Please check your Apache and mod_rewrite settings.



Now, on installation we had to switch to PHP5 to get CS Cart 2.0.5 to work, now is this now the issue to why SEO will not activate? If so, how do we get round this?



Thanks in advance

Paddy

Did you see this thread? Take a look at post #11.



Bob

What thread, sorry?

[quote name=‘DIZZYMOTHER’]What thread, sorry?[/QUOTE]



Sorry, got ahead of myself.



[url]http://forum.cs-cart.com/showthread.php?t=11174[/url]



Take a look at post #11.



Bob

Or i think here is also a small solution



[url]http://forum.cs-cart.com/showthread.php?t=11661&highlight=SEO[/url]

I followed the thread and it mentioned about having the cart in a sub directory and gave a solution, but my cart is not in a sub directory, so how can I resolve this still?

Did you try the solution in post #4 above?



Bob

I did, but to be honest, its really confusing…?

If anyone can put this into simple terms that would be handy!

Ignore that last one, I was being dumb, all sorted, thanks for all the pointing in the right direction guys!!!

in the “/addons/seo/schemas/settings/actions.post.php” file.



Replace:



function fn_settings_actions_addons_seo(&$new_value, $old_value)

{

if ($new_value == ‘A’) {

$result = fn_http_request(‘GET’, Registry::get(‘config.http_location’) . ‘/catalog.html?version’);

if (strpos($result[0][‘RESPONSE’], ‘200 OK’) === false) {

$new_value = ‘D’;

fn_set_notification(‘W’, fn_get_lang_var(‘warning’), fn_get_lang_var(‘warning_seo_urls_disabled’));

}

}



fn_rm(DIR_COMPILED . ‘customer’);



return true;

}



With this::



function fn_settings_actions_addons_seo(&$new_value, $old_value)

{

if ($new_value == ‘A’) {

$result = fn_http_request(‘GET’, Registry::get(‘config.http_location’) . ‘/catalog.html?version’);

if (strpos($result[0][‘RESPONSE’], ‘200 OK’) === false) {

//$new_value = ‘D’;

//fn_set_notification(‘W’, fn_get_lang_var(‘warning’), fn_get_lang_var(‘warning_seo_urls_disabled’));

}

}



fn_rm(DIR_COMPILED . ‘customer’);



return true;

}

Here is the proper format. I believe the only changes are in [COLOR=“Red”]RED[/COLOR].


function fn_settings_actions_addons_seo(&$new_value, $old_value)
{
if ($new_value == 'A') {
$result = fn_http_request('GET', Registry::get('config.http_location') . '/catalog.html?version');
if (strpos($result[0]['RESPONSE'], '200 OK') === false) {
[COLOR="Red"]//[/COLOR]$new_value = 'D';
[COLOR="Red"]//[/COLOR]fn_set_notification('W', fn_get_lang_var('warning'), fn_get_lang_var('warning_seo_urls_disabled'));
}
}

fn_rm(DIR_COMPILED . 'customer');

return true;
}

^^Thank you. Fixing the PHP with the red // did fix the problem. I was so confused!!!