VIXUS Posted April 4, 2010 Share Posted April 4, 2010 I need some help!i run 1.105 and i want to turn on friendly url's.I renamed mine htaccess.txt.bup and inserted new .htacces file with following contens:# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpSite opens main index and some of cms pages (not all) and it wont open any of categories i get some 404 errors. and it wont find mine categories. i have mine shop in folder /shop2/Anyone can help me on this? Link to comment Share on other sites More sharing options...
cerberus22 Posted April 4, 2010 Share Posted April 4, 2010 Hithis is the info from my htaccess file (I am running v1.1) backup your old file first just in case :(I can see a couple of differences in yours and mine)copy the info and past into your .htaccessSee attached file htaccess info.txt Link to comment Share on other sites More sharing options...
VIXUS Posted April 4, 2010 Author Share Posted April 4, 2010 Thank you but my problem remains (as i see files are the same).eg. after i open my first category i get this error:Warning: include(/home/domain/public_html/config/config.inc.php) [function.include]: failed to open stream: No such file or directory in /home/domain/public_html/404.php on line 3Warning: include() [function.include]: Failed opening '/home/domain/public_html/config/config.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/domain/public_html/404.php on line 3Warning: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/404.php:3) in /home/domain/public_html/header.php on line 4server log shovs this error:[sun Apr 04 19:00:17 2010] [error] [client 89.164.185.215] File does not exist: /home/domain/public_html/shop2/2-stolna-racunala, referer: http://www.domain.com/shop2/ Link to comment Share on other sites More sharing options...
cerberus22 Posted April 4, 2010 Share Posted April 4, 2010 Hi Vixus,It seems as the problem is somewere else, sorry I dont know enough to help, I suggest you start up a new thread stating your last post and see if anyone can help.here are a few links about .htaccess problems, I hope one will point you in the right direction : http://www.prestashop.com/forums/viewthread/28692/installing_prestashop/friendly_urlhttp://www.prestashop.com/forums/viewthread/18302/general_discussion/how_to_make_seo_friendly_urls_work_dot___help_dot__dot__dot____solved__http://www.prestashop.com/forums/viewthread/16333/general_discussion/after_changing_site_to_friendly_url_changing__dot_htaccess_my_view_product_cannot_be_view Link to comment Share on other sites More sharing options...
VIXUS Posted April 4, 2010 Author Share Posted April 4, 2010 Finally iw solved it.I have mine shop in folder so adres is www.xxxx.com/folder/And all it was needed is to put plain and simple .htaccess into my folder and not into rootI hope this will help others becouse iw read dozens of diferent solutions and none helped untill i localy tested on wamp and realised mistake.thanx 4 your time cerberus22! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now