Hi
I wish to turn on SEO in my settings, but am using a zeus server mod_rewrite is not supported so if i do i get an error 404 page not found.
With some research i have found that zeus supports a few popular features like .htaccess to help users migrate away from apache, zeus does not use the .htaccess file instead i need to create a file called rewrite.script which contains some conversion text to allow mod_rewrite to work.
A web site Drupal says this should work with namesco (my host), but it does not, the 404 error does not happen but instead when my products are clicked on in the menu it just relodes the index page.
Has anyone got the SEO to work with CScart on a Zeus server? Thanks.
CODE USED:
RULE_0_START:
get the document root
map path into SCRATCHOCROOT from /
initialize our variables
set SCRATCH:ORIG_URL = %{URL}
set SCRATCH:REQUEST_URI = %{URL}
see if theres any queries in our URL
match URL into $ with ^(.)?(.)$
if matched then
set SCRATCH:REQUEST_URI = $1
set SCRATCH:QUERY_STRING = $2
endif
RULE_0_END:
RULE_1_START:
prepare to search for file, rewrite if its not found
set SCRATCH:REQUEST_FILENAME = %{SCRATCHOCROOT}
set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI}
check to see if the file requested is an actual file or
a directory with possibly an index. don’t rewrite if so
look for file at %{SCRATCH:REQUEST_FILENAME}
if not exists then
look for dir at %{SCRATCH:REQUEST_FILENAME}
if not exists then
check it’s not webmail or controlpanel or tech_support
match SCRATCH:ORIG_URL into % with ^/webmail|^/tech_support|^/controlpanel
if matched then
goto END
else
set URL = /index.php?q=%{SCRATCH:REQUEST_URI}
goto QSA_RULE_START
endif
endif
endif
if we made it here then its a file or dir and no rewrite
goto END
RULE_1_END:
QSA_RULE_START:
append the query string if there was one originally
the same as [QSA,L] for apache
match SCRATCH:ORIG_URL into % with ?(.*)$
if matched then
set URL = %{URL}&%{SCRATCH:QUERY_STRING}
endif
goto END
QSA_RULE_END: