I bought a CMS Design Using PHP and jQuery book to learn something new. In the first pages of book, there is a mod_rewrite code in .htaccess, and looks like this:
- Code: Select all
RewriteEngine on
RewriteRule ^([^./]{3}[^.]*)$ /index.php?page=$1 [QSA,L]
Typing localhost/cms/MYWORD in browser doesn't work (404 not found)... When i upload this .htaccess & other cms files on my hosting - everything works fine.
How to set XAMPP mod_rewrite to work properly?