我的.htaccess mod_rewrite规则没有';工作不正常


my .htaccess mod_rewrite rule doesn't work properly

我正在尝试建立一个网站,并使用.htaccess文件重写我的所有URL,这样就不需要.php了。

E。G.www.blahblah.com/file

而不是

www.blahbrah.com/file.php

我的.htaccess文件当前为:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index'.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteCond %{HTTP_REFERER} !^http://example.co.uk/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://example.co.uk$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.example.co.uk/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.example.co.uk$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.example.co.uk/match/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.example.co.uk/match$      [NC]
RewriteCond %{HTTP_REFERER} !^http://example.co.uk/match/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://example.co.uk/match$      [NC]
RewriteRule .*'.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

并且我的站点存储在目录/match中。。

请有人告诉我为什么我的链接不起作用:(它已经困扰了我几个小时了!

非常感谢。

解决了对不起大家,浪费了您所有的时间!