example:
sub.site.com/accounts/user
would really go to:
sub.site.com/index.php
but it would stay as the original URL since index.php is requesting the URI so it can pull up the right files.
This is the code I have atm but it's not working and I'm a noobie
- Code: Select all
RewriteEngine On
RewriteRule ^/.*(\.css)|(\.php)|(\.htc)|(\.jpg)|(\.png)|(\.html)|(\.gif)|(\.js)|(\.txt)|(\.ico)$ - [L]
RewriteRule ^/css/(.*) - [L]
RewriteRule ^/([a-zA-Z0-9\s_/+.!*',()~-]+)$ /index.php [QSA]
Also this is in a sub domain just incase that makes any difference.