views:

70

answers:

1

For URL Rewriting, i have got the output for static URL But , for dynamic URL , i am getting partial output only. I have placed the .htaccess file in the root directory only. Here is the code:

Options +FollowSymLinks RewriteEngine on RewriteRule ^booking/price/([0-9]+)/?$ booking.php?price=$1

What will be the solution ?

+1  A: 
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^booking/([0-9]+)/?$ booking.php?price=$1
RewriteRule ^booking/([0-9]+)/([0-9]+)/?$ booking.php?price=$1&pass=$2

You really want to customise your code for these though so as to be able to use general rules, rather than converting specific paths to use $_GET.

46Bit
Thank U.I used this code.Its rewriting.But,even some CSS Issues , images display here and there occuring.What to do?If the same URL is not redirected, i mean using query strings, passing values, no CSS issues ocur.Everything work fine there.But if use this URL rewrite, this issue occuring,though i placed the .htaccess file in the root directory
Vithya
46Bit
Ya ...I tried that.If i give the full site URL in the src attribute, its displaying everything correctly.Is there any other rule for this ?
Vithya
If i give "http://example.com/inc/style.css" in the src tag of my page, everything displaying perfectlyIs there any rule for this??
Vithya
How can i use the rewrite base rule
Vithya