LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   URL rewrite rule not working... (http://www.linuxquestions.org/questions/linux-software-2/url-rewrite-rule-not-working-687908/)

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

http://www.seekseer.com/public_html/...id=1&type=Next

to be rewritten as

http://www.seekseer.com/public_html/...el-deals/deal1

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.

Note:
# 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...

http://www.seekseer.com/public_html/...evenHotel-Deal

.. 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 01:06 PM.