1
我不知道爲什麼,但這個簡單的規則將無法正常工作。簡單的重寫規則不工作在PHP/Apache的htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase/
RewriteRule ^rubbellos\.png/$ rubbellos/rubbelbild_png.php [NC,L]
RewriteRule ^rubbellos\.css/$ rubbellos/rubbellos_css.php [NC,L]
</IfModule>
如果我將xyz/rubbellos/rubbelbild_png.php複製到瀏覽器中,它是可以的。
我的做法是將rubbellos.png的請求帶到.php文件中。但是我找不到文件。
Thx任何提示提前。
thx。我將它改爲上面的代碼。 RewriteBase在我的情況下是根。 – hamburger 2014-09-06 10:59:33