-   Linux - Software (
-   -   URL rewrite rule not working... (

vikram_cvk 12-02-2008 11:10 PM

URL rewrite rule not working...
Hello All,

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

Options +FollowSymLinks
RewriteEngine on
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 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 ... 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!

j-ray 12-03-2008 02:14 AM

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 02:13 PM.