
Originally Posted by
conor
Hi,
Does your local PC have Apache installed and does it have mod_rewrite enabled? Does it have the necessary rewrite rule places in a VirtualHost directive or a .htaccess file?
You need to have a positive answer to all of those questions.. I'd guess that you probably don't have all the above set up properly.
Hope that helps.
All the best...
Conor
ceon
Hi thanks for answering,
I had an appserv installed with mod_rewrite enabled. and I just used the .htaccess from the live sites..
here is the .htaccess code :
Code:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
I just copied from my live site and put it into my local folders and it wont run, links seems to be broken..
example :
live site links : www.abc.com/examples -> is running good
offline sites : www.abc.com/examples -> page not found and plus when I hover the links it chop off the rest of the links,
like it should be : http://localhost/www.abc.com/blablablabla
become : http://localhost/blablablabla
can you please tell me what did i go wrong?
thank you very much
Bookmarks