Category: mod-rewrite

.htaccess rewrite without www AND redirect to subdirectory

I’d like to redirect* to* And at the same time redirect* to* But I also have /wiki/ and /blog/ and /style/, so I don’t want to redirect* to* This is what I have at the moment, which is not working quite correctly: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond […]

The correct way to make a rewrite rule?

I have a .htaccess in my site www folder that has this rewrite rule: RewriteRule ^(\w+)/?$ /$1.php It works, if you type in – It finds urltest.php and brings it up. However, if you type in it still brings urltest.php up but the CSS stops working. I have the CSS file specified in […]