I'm sorry for this "bad" title, I'll try to explain it:
My .htaccess looks like this:
Options -MultiViews
RewriteEngine On
RewriteBase /mythbusters/tsp/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
# RewriteRule ^album/(.+)$ index.php?url=album/show/$1
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
The last line of this file is working perfectly. It allows to rewrite my URL from _ROOT_/index.php?url=album/index to _ROOT_/album/index (I'm using this to work with those parameters and to create beautiful URL's.
Although, there's one exception I want to make:
The out-commented line in my .htaccess file is one of my uncountable tries to rewrite a specific URL.
With the last line of my .htaccess file, the working URL looks like this:
_ROOT_/album/show/name_of_album which is the same as _ROOT_/index.php?url=album/show/name_of_album
Now, I want to remove the "show" part of this URL, I tried to to it with
# RewriteRule ^album/(.+)$ index.php?url=album/show/$1
But using this, every other path in my site changes which causes the CSS files fail loading (just pure HTML, no styles).
Are there some missing flags or even some wrong regex in this file?
Thanks for your help.
Chris