phdphd Posted June 20, 2017 Share Posted June 20, 2017 Hi All, May someone tell me why this very simple url rewriting statement does not work (I still get "fr/hello.php" in the address bar instead of "fr/world.html") ? The .htaccess file is at the root, and there is a subfolder called "fr", that contains the file "hello.php" RewriteEngine on RewriteRule fr/world.html fr/hello.php Thanks ! Quote Link to comment https://forums.phpfreaks.com/topic/304174-url-rewriting-statement-not-working/ Share on other sites More sharing options...
ginerjm Posted June 20, 2017 Share Posted June 20, 2017 Maybe you want to try an Apache forum? Quote Link to comment https://forums.phpfreaks.com/topic/304174-url-rewriting-statement-not-working/#findComment-1547564 Share on other sites More sharing options...
phdphd Posted June 20, 2017 Author Share Posted June 20, 2017 In fact, I used a wrong way to test the feature (clicking the file name in a directory listing in the browser). Everything seems ok now. Quote Link to comment https://forums.phpfreaks.com/topic/304174-url-rewriting-statement-not-working/#findComment-1547565 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.