url rewriting
Posted: Fri Sep 30, 2005 9:31 am
Hi,
I am trying to rewrite a url using the mod_rewrite function
the dynamic url at present is as so:
http://www.domain/cat/training-activity ... t_id=CIA05
the act_id variable is the pages product code and is the primary key. So far I have rewritten it so the url looks like:
http://www.domain/cat/training-activity-CIA01.html
what I really want so that it is extra specially friendly to search engines is to include the products title in th url rather than its product code, something like;
http://www.domain/cat/product-name-trai ... ivity.html
the title is stored in the same database table as the product code, is this possible to do and if so how?
all suggestions appreciated!
I am trying to rewrite a url using the mod_rewrite function
the dynamic url at present is as so:
http://www.domain/cat/training-activity ... t_id=CIA05
the act_id variable is the pages product code and is the primary key. So far I have rewritten it so the url looks like:
http://www.domain/cat/training-activity-CIA01.html
what I really want so that it is extra specially friendly to search engines is to include the products title in th url rather than its product code, something like;
http://www.domain/cat/product-name-trai ... ivity.html
the title is stored in the same database table as the product code, is this possible to do and if so how?
all suggestions appreciated!