RewriteEngine On
RewriteBase /games4u/
RewriteRule ^index/?$ index.php [NC,L]
RewriteRule ^forum/([a-zA-Z0-9_-]+)$ forum.php?user=$1
RewriteRule ^forum/([a-zA-Z0-9_-]+)/$ forum.php?user=$1
So what I want is the url to be: localhost/forum/1 1 = user id 1. But the design wont load because of this. It's like the CSS file gets removed or something. Why doesn't thios work?
You need to set conditions for your re-writing, to ignore folders and files:
Also, it's recommended that you will use the full path for your css / js files, such as: