Jump to content

URL rewriting (mod_rewrite) is not active on your server, but it is.


Recommended Posts

In the admin area it states that, "URL rewriting (mod_rewrite) is not active on your server, or it is not possible to check your server configuration. If you want to use Friendly URLs, you must activate this mod."

 

However I am getting friendly URLs. What do I need to do the check this is in sync with the PestaShop verifying process?

Edited by Bobcat22 (see edit history)
Link to comment
Share on other sites

If your sure it is active you can remove the warning by changing one word in your tools.php file.

 

class/tools.php at line 2220 change the last false to true

 

 

public static function apacheModExists($name)

{

if (function_exists('apache_get_modules'))

{

static $apache_module_list = null;

 

if (!is_array($apache_module_list))

$apache_module_list = apache_get_modules();

 

// we need strpos (example, evasive can be evasive20)

foreach ($apache_module_list as $module)

{

if (strpos($module, $name) !== false)

return true;

}

}

return false; (change to true)

}

Edited by tdr170 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...