我有一個網站已被刊登在論文中,他們張貼我的地址,因此...使用a重定向網址。在文件擴展後的結尾?
www.mysite.com/about.php。
如果你訪問它上面404周的作爲dot
在PHP結束...
是否有htaccess的一種方法,我可以這樣重定向到正確的頁面?
當前的htaccess
RewriteEngine On
RewriteRule ^(.*)\.php\. $1.php
RewriteRule ^people/([^/]*)/([^/]*)/([^/]*)$ /profile.php?county=$1&name=$2&id=$3 [L]
RewriteRule ^people-in-(.*) /people.php?county=$1 [L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite\.co.uk$
RewriteRule (.*) http://www.mysite.co.uk/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/index.php$
RewriteRule (.*)/[R=301,L]
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
ErrorDocument 404 /notfound.php
'RewriteRule ^(。*)\。+ $ $ 1 [L,QSA,R = 301]'? –