Jump to content

mod_rewrite rule?


warid7840288

Recommended Posts

http://abantrentacar.com/index.php?action=home

http://abantrentacar.com/index.php?action=reservation&step=1

 

i have the above and trying to rewrite through the htaccess file to

 

http://abantrentacar.com/home

http://abantrentacar.com/reservation/1

 

 

 

here is my code

 

RewriteEngine on

RewriteRule ^action/([^/\.]+)/?$ index.php?action=$1 [L]

Link to comment
https://forums.phpfreaks.com/topic/46240-mod_rewrite-rule/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.