This exclude CSS/JS/Images from original url. Anyone know how to solve this problem ?
.htacess:
RewriteEngine on
RewriteRule %{REQUEST_FILENAME} !-d
RewriteRule %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?uri=$1 [QSA,L]
PHP:
$splitarray = explode('/',$_GET['uri']);
- I explode URL using PHP to get 2nd parameter and include that page to index.php
index.php?RewriteRulelines aren't supposed to beRewriteCond?index.php