.htaccess - htaccess rewriterule with order in url -


i'm trying put rewrite rule apache server. should take 'order/###' , change 'order.php?id=###'. reason it's rewriting 'order.php/###'. if change other 'order' rule works fine.

anyone know what's going on?

my .htaccess file looks this:

rewriteengine on  ## tighten host rewritecond %{http_host} !^mydomain\.com$ [nc]  rewriterule .? http://mydomain.com%{request_uri} [r=301,l]  ## dynamic pages rewriterule ^order/([0-9]+)/?$ order.php?code=$1 [l,nc]  ## static page redirects rewriterule ^prices$ /prices.php [l,nc] rewriterule ^examples$ /examples.php [l,nc] 

i have no access httpd main server config file on live server.

i'm using wamp server local development.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -