
arunkumar.webadmin at gmail
Apr 30, 2012, 11:32 AM
Views: 103
Permalink
|
|
issue with rewrite rule with .htaccess
|
|
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
|