URL rewrite rule not working...
We are trying to implement URL rewriting in our application. We are new to regular expressions+url rewriting.
We want the following URL
to be rewritten as
For this we have written following rewrite rules
RewriteRule ^/sandiego-hotel-deals/deal-(.*) /details.php?priority=$1&cat_id=$2&type=$3
We restarted Apache server(on linux) after creating .htaccess file. But there is no change ...still we are seeing the old url.
# We have created .htaccess file in http://www.seekseer.com/public_html/sai/hoteldeals/ folder.
Once the above works, we want to further extend the url rewriting to have 'deal title text' in the URL
For example for the link http://www.seekseer.com/public_html/...id=1&type=Next ... the deal title text is "Seven Hotel" .. we want the URL to be as follows...
.. is this possible? [Deal Title text comes from DB]
Kindly help us out. Thanks in advance!
1. there is no "sandiego-hotel-deals" in the first URL so nothing will be found
2. is mod_rewrite installed and configured?
|All times are GMT -5. The time now is 04:23 PM.|