httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arunkumar Janarthanan <arunkumar.webad...@gmail.com>
Subject [users@httpd] issue with rewrite rule with .htaccess
Date Mon, 30 Apr 2012 18:32:42 GMT
All,

I have a site hosted at 1and1 where it is a simple PHP site configured on
Apache, while I am trying to write a rewriterule like below.

RewriteRule ^Feature/(.*)?$ Page_Feature.php?kfname=$1 [R=301,NC,L]

The result always returns the flag with .php as parameter.

C:\>wget www.test.com/Feature/whoweare
--14:28:47--  http://www.test.com/Feature/whoweare
           => `whoweare.2'
Resolving www.test.com... x.x.x.x.
Connecting to www.test[*]:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.test.com/Page_Feature.php?kfname=.php/whoweare[followin
g]

Any advice ?
-- 
Best Regards,
Arun Janarthanan

       http://www.linkedin.com/in/arunjanarthanan
       http://www.facebook.com/arun.janarthanan
       http://twitter.com/#!/ArunJanarthanan

Mime
View raw message