Jump to content

[SOLVED] .htacces help


VIXUS

Recommended Posts

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 activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([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 errors
ErrorDocument 404 /404.php

Site 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

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 3

Warning: 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 3

Warning: 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 4

server 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

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_url
http://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

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 root

I 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...