Jump to content

url / link rewrite


alex999

Recommended Posts

hi,

installed friendly urls, link rewrite, .htaccess... everything works fine.
But I would like to change the url to something more seo-oriented for my site.

So for example: when I click the manufacturer-block the url requested is manufacturer.php
Is it possible to change that url to something pointing to say xyz.php? And if so, how?

Thanks in advance for each hint.

Link to comment
Share on other sites

OK... found. For instance, for manufacturer

a) change under \modules\blockmanufacturer\ in blockmanufacturer.tpl the {$base_dir} in line 3 to yoururl.php
B) rename manufacturer.php, under your root, to yoururl.php
c) amend .htaccess:
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /......../yoururl.php?id_manufacturer=$1$3 [QSA,L,E]


It seems to work. Looking for the script for generating the .htaccess file, as each time I refresh .htaccess changes under c) are overwritten. If anyone know... thanks.

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...