SEO links not working

I currently have...
DirectoryIndex default.php index.php
as site is under development
all urls show as...
domain.com/index.php/section-c-3/page-p-72 [which may be affecting routing as above]

If i temporarily remove the DirectoryIndex rule and clear cache etc - still shows URL's as above. I notice on the demo site index.php is not there
so it may something peculiar to this setup causing it. will play with it later.

I suspect the old version modules I downloaded for testing caused the error - something in there caused a loop and regenerated the dummy/no photo/no path link - which then caused the missing image error and exposed the files.

Hope that helps in some way...

perhaps disable module downloads if they havent been updated to latest version?

tim

It is uncommented by default because it tends to crash platforms that don't support overriding Options. Indexes is usually disabled by default in the industry.

If /index.php/ is shown in the URL mod_rewrite is not enabled or LiteCart failed to identify mod rewrite support.

If Options -Indexes has no effect make sure you configured Apache to allow overrides, or disable indexes in your main Apache config. See lib_route.inc.php line 206 and 216.

mod rewrite is enabled

settings / SEO Links Enabled = True
URL /index.php/equipment-c-4/buckles-packaging-p-22

settings / SEO links Enabled = False
URL /index.php/equipment-c-4/buckles-packaging-p-22

#############

SO... setup clean install - in base folder - on bare domain

SEO links = FALSE
URL /index.php/en/testcat-c-1/

SEO links = TRUE
URL /index.php/en/testcat-c-1/

#############
UPDATE

or LiteCart failed to identify mod rewrite support.

 
    SetEnv HTTP_MOD_REWRITE On
 

mod_env not working
therefore maybe allow overrides not on

it maybe the above causing the following errors...
System Cache Enabled = FALSE --- but cache still filling up
SEO Links = FALSE - still attempting seo links

or LiteCart failed to identify mod rewrite support.

the problem is...

 
    SetEnv HTTP_MOD_REWRITE On
 

phpFPM not setting environment

Litecart mod_rewrite detection script doesnt work for fastCGI / phpFPM

[changed litecart to]
lib.route.php

index.php removed

 207     $use_rewrite = true;

tim

Setting the environment variable is just one of many attempts to identify mod_rewrite. It also tries apache_get_modules().
I'm suprised all of them failed.

me too...
checked your code - quite impressive...

as above - changed lib.route.php $use_rewrite = true

Chủ đề này đã bị đóng do không hoạt động trong thời gian dài. Không thể đăng bài vào chủ đề này.
View code on GitHub