Without using htaccess, my URL looks like this: http://site.ru/index.php?page=1 .
How with the help of htaccess, to make of this, this option: http://site.ru/1 ?
Without using htaccess, my URL looks like this: http://site.ru/index.php?page=1 .
How with the help of htaccess, to make of this, this option: http://site.ru/1 ?
taken from comment.
RewriteRule ^/?(\d+)$ index.php?page=$1 [L] Like this:
RewriteEngine On RewriteRule ^([^/]*)$ /index.php?page=$1 [L] or so
Options +FollowSymLinks RewriteEngine on RewriteRule (.*)/$ /index.php?page=$1 PS I am writing to the memory, but it seems to work.
Source: https://ru.stackoverflow.com/questions/241370/
All Articles