Let me know, the way i may use php's function mode_rewrite properly.
I am presently developing with xampp. I have triggered
LoadModule rewrite_module modules/mod_rewrite.so within the httpd.conf file.
Also I edited following lines:
<Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all </Directory>
During my .htaccess file, I have following code:
RewriteEngine On RewriteRule ^([^/]*)\.html$ /?m=$1 [L]
Therefore it should change
After I now open
localhost/page/start.html, it only shows me "It really worksInch. Why does not it show me this content from
An additional question could be, how do you alter the rewrite rule, which i could access
Appreciate a solution!
You're while using absolute path
/ inside your substitution. Then when by using this rule within the .htaccess file in
/page/ a request of
/page/start.html will really be rewritten to
/?m=start and never
Consider using a relative path rather:
RewriteRule ^([^/]*)\.html$ ./?m=$1 [L]