url rewrite help

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
mahir78
Forum Newbie
Posts: 1
Joined: Sat Dec 15, 2007 4:44 am

url rewrite help

Post 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]
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

The problem might be in your virtual host settings. Try changing AllowOverride to all .
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply