Jump to content

Provide me with the ideal php.ini file


Recommended Posts

I'm not the prestashop team, but I might be able to help still!

I'm hosted with 1and1 and have had to jump through several hoops to get things working:

.htaccess:

AddType x-mapp-php5 .php 
# URL rewriting module activation 
RewriteEngine on
RewriteBase /

# URL rewriting rules 
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$3 [L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [L,E]

# Catch 404 errors 
ErrorDocument 404 /404.php




And my php.ini:

allow_url_fopen=On 
allow_url_include=On



I hope this works for you!
I still can't get URL rewriting working, even though I've made all the changes to my .htaccess files!

Dan

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...