kolo222 Posted April 29, 2013 Share Posted April 29, 2013 Hello,I need two rules in apache to workRewriteRule ^([^/]*)\.html$ index.php?page=$1 [L]RewriteRule ^([^/]*)/([^/]*)\.html$ index.php?pnumber=$1&page=$2 [L]First one rule does work and index.php?page=something redirect to /something.htmlSecond rule does not work /index.php?pnumber=1&page=somthing need to be /1/something.htmlBut when make this link i got 404 error the request url not found.Please can you tell me where is error, and how i can make to second rule work too?Thank you Quote Link to comment https://forums.phpfreaks.com/topic/277419-apache-rewrite-rules-problem/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.