I’m new to URlRewriting and I’ve been having some problems rewriting my URLs. I done rewriting for dynamic urls
like
www.mysite.com/page.php?id=4
to
www.mysite.com/4
But I have problem in static page url rewriting ..
www.mysite.com/page.php
to
www.mysite.com/page
I google alot but not find sutable answer.. Please help me…..
I am using these patterns
RewriteRule ^flight-bookings /flight-bookings.php [L]
RewriteRule ^flight-bookings$ /flight-bookings.php [L]
RewriteRule ^flight-bookings flight-bookings.php [L]
But no one work I always got 404 page not found.. while
www.mysite.com/flight-bookings.php
working perfectly
Heyi thank To all of you for help me..
finally I found the issue…
I dont know the logic is write is right or wrong but is work on my senerio ..
I try to do url rewrite of “/flight-booking s.php” to /flight-booking s
Here the URL and REWRITED URL was same
But when I try “/flight-booking .php” to /flight-booking s
It workes…
Conclusion: In static page’s URL rewrite name of page and patteren should be distinct “I distinguish it by ‘s’ “
Actual URL:-
After rewrite