Reputation: 145
I have the following files in my root folder:
listing_location.html
listing_location.php
I am using the following link from other page to access to redirect to listing_location.php
< a href="listing_location/< ? php echo "$_SESSION["listing_id"]; ?>" > location < / a >
below is the rewrite rule
RewriteRule ^listing_location/([0-9]+)/?$ listing_location.php?listing_id=$1
But when I click the link it redirects me to listing_location.html/{some-number}
and gives 404 error.
Upvotes: 1
Views: 118
Reputation: 2132
Disabling content negotiation will probably solve your problem.Try this.
Options -MultiViews
RewriteEngine On
RewriteRule ^pricing/([0-9]+)/?$ pricing.php?listing_id=$1
RewriteRule ^listing_location/([0-9]+)/?$ listing_location.php?listing_id=$1
Upvotes: 1