Jump to content

apache rewrite rules problem


kolo222

Recommended Posts

Hello,

I need two rules in apache to work

RewriteRule ^([^/]*)\.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.html

Second rule does not work /index.php?pnumber=1&page=somthing need to be /1/something.html

But 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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.