How would i chane the following link in the url bar to .html?
I am trying to do this using .htaccess file
i have the follow code that i was using before but dont no how to change it to my needs.
RewriteEng开发者_JS百科ine on
RewriteRule ^([^/\.]+)\.html index.php?act=$1 [L]
for e.g some of my links are like the ones listed below
?p=our_courses&course_id=12
?p=my_account&cat=1&course_id=12
Thank you,
for ?p=my_account&cat=1&course_id=12
try this.
Options +FollowSymLinks
RewriteEngine on
RewriteRule -p-(.*)-cat-(.*)-course_id-(.*)\.html index.php?p=$1&cat=$2&course_id=$3
You can try this:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([^/.]+)/our_courses.php$ index.php?p=our_courses&course_id=$1 [L]
RewriteRule ^([^/.]+)/(^/.]+)/my_account.php$ index.php?p=my_account&cat=$2course_id=$1 [L]
精彩评论