Page 1 of 1

url rewrite help

Posted: Sat Dec 15, 2007 5:17 am
by mahir78
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi geeks,

I am facing problem with url rewrite...I had no problem in other servers with the same syntax. now i am having kubuntu with apache2,php5

[syntax="apache"]Options +FollowSymLinks
RewriteEngine on
RewriteRule ^tag/([^/]+)/?$ /PATH/filename.php?tag=$1&%{QUERY_STRING}
and my virtual host settings are

Code: Select all

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride none
        DirectoryIndex index.php
        allow from all     
</Directory>
browser is displaying content based on the else condition.

whatever i have in $_GET["variable"] doesnot get any value....(but i can get the $_GET value if i typed the url directly)

kindly help me

Thanks
Mahir


feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Mon Dec 17, 2007 10:43 am
by pickle
The problem might be in your virtual host settings. Try changing AllowOverride to all .