I have this code in htaccess file
RewriteEngine On
RewriteRule (.*).html view.php?id=$1 [QSA,L]
Now all post look /post.html
I need add page.php?id=$1 like this so he shows /page.html
How to do that? Please help with this
view.php?id=1 must go to /post1.html
view.php?id=2 must go to /post2.html
page.php?id=1 must go to /page1.html
page.php?id=2 must go to /page2.html
PHP
$id = (INT)$_GET['id'];
Not Working
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ view.php?id=$1 [L]
RewriteRule ^(.*)$ page.php?id=$1 [L]