RewriteRule (.*) index.php
Can you explain this?
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
This rule matches requests to all possible URL paths and rewrites them to index.php. | |||||
feedback
|
|
This points any web address given to index.php. The first argument is a regular expression (look it up if you don't know) and the second is of course the page to redirect to. Note that the redirect is on the server side and so isn't visible to the outside user, and this is therefore how websites make their addresses easier to read. | |||||
feedback
|
|
The very first result on google for "RewriteRule" is this. It very clearly explains the syntax.
| |||
feedback
|