I can't implement URL rewriting.
What I've done so far:
1. Enabled rewrite_module
in apache.
2. Added a .htaccess
file to my website (test) in the directory:
127.0.0.1/test/
which contains the following:
RewriteEngine on
RewriteRule ^/news/([0-9]+)\.html /news.php?news_id=$1
3. I have a news.php
file which contains
echo "hello world";
Now, whenever I go to URL: http://127.0.0.1/news/1
, I get a
'Page not found'