Forum Moderators: phranque
I want to rewrite this url:
http://www.example.com/view_colleges.php?c_id=1
I want it to
http://www.example.com/university-of-wolverhampton/
OR http://www.example.com/university-of-wolverhampton.php
Please help me.
[edited by: jdMorgan at 10:52 pm (utc) on June 10, 2008]
[edit reason] example.com [/edit]
[added] On the basis of the HTTP standards, I would suggest that your URL should be "http://www.example.com/university-of-wolverhampton". This is a valid extensionless "page" URL, as opposed to a directory URL, and will never need to be changed again, even if your site infrastructure changes, say, to cold fusion or to .asp. [/added]
Jim
[edited by: jdMorgan at 10:56 pm (utc) on June 10, 2008]
How can I create rule for them. Should I create 6 rules or only one rule ?
If multiple rules then where should I include the rules, In one htaccess file or multiple htaccess file.
I have created rules for above dynamic url.
RewriteBase /
RewriteRule ^university-of-wolverhampton/?$ view_colleges.php?c_id=1 [NC,L]
Will it be work?
Kindly suggest