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!
url rewriting
Moderator: General Moderators
thanks but these posts only explain what i have already done, that is rewrite the url with the controlling variable - product code in it:
http://www.domain/cat/training-activity-CIA01.html
now what I want to do is include the products title ijn the url rather than the products code, this is stored in the same database. Now i could do it by passing the title variable rather than the product code variable but titles are huge in size and passing this variable around would affect the rest of my site.
What I was actually trying to find out was whether the product code can be substituted by the products title in the re-written url?
thanks
http://www.domain/cat/training-activity-CIA01.html
now what I want to do is include the products title ijn the url rather than the products code, this is stored in the same database. Now i could do it by passing the title variable rather than the product code variable but titles are huge in size and passing this variable around would affect the rest of my site.
What I was actually trying to find out was whether the product code can be substituted by the products title in the re-written url?
thanks