Jump to content

Friendly URLs not working


Recommended Posts

Certainly can:

# URL rewriting module activation
RewriteEngine on

# 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 [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

Link to comment
Share on other sites

Hi Stampy

You need to run the phpinfo file. It will then give you your PHP info

Put this into your browser

http://www.sentientsolar.co.uk/php_info.php

(if that is the correct path to the file)

then search for mod_rewrite under loaded modules. This will tell you if mod rewrite is enabled on your server

Your site is looking very nice
May I ask how you added your contact details to the header?

Regards

Ken

Link to comment
Share on other sites

Hi Ken

Thanks for that. I can't find loaded modules or mod_rewrite. I have found url_rewriter.tags which has the value: a=href,area=href,frame=src,input=src,form=,fieldset=

I also found: allow_url_fopen which has the value of On.

allow_url_include has the value of Off. Could it be this?

I added the contact details into blocksearch-header.tpl in blocksearch.

Thanks,

Stampy

Link to comment
Share on other sites

Hi Stampy

I still do not see the mod_rewrite module loaded into apache server (or FollowSymLinks)

Send your htaccess file to your host and ask them why it is not working

PS.
The header mod to display the contact details works great, however the 'br' in the text is causing validation errors.


should be escaped with




Regards

Ken.

Link to comment
Share on other sites

×
×
  • Create New...