Jump to content

Jelte

New Members
  • Posts

    2
  • Joined

  • Last visited

Jelte's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your comment, I am afraid that is doesn't do the trick, i tested it and know framework.dev/test is unreachable (404 error) But i think of another aproach, like you say the domain doenst matter, but we can check the request_uri. When i go to framework.dev the request_uri is: /. and if i go to framework.dev/user the request_uri is: /user. So i need the condiction for the following statement: if request_uri is not equal to '/' then redirect to index else do no redirect. Thanks for your help! Greetings jelte.
  2. Hello everybody, This is one of my first times that i need to configure a .htacces file, so maybe is this a very simple question but I cant figure it out by myself . Situation: I have a local site, that reachable under the URL: "framework.dev". But I need to configure a rewrite rule: rewrite all the URL's to index.php, except the exact URL: 'framework.dev'. example: framework.dev/users //Rewrite this url to index.php framework.dev/users/edit/1 //Rewrite this url to index.php framework.dev/login //Rewrite this url to index.php etc.. framework.dev //Do not rewrite How do i formulate the correct .htacces rewrite rule? Thank you for you time, Greetings Jelte PS: I you know a good .htaccess tutorial please inform me
×
×
  • 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.