2012-12-18 57 views
0

我是在Windows服務器上工作的新手,並且已經知道它是爲ISPAI Rewrite設置的。ISPAI重寫301在Windows服務器上重定向/ SEO URL規範化

我已經嘗試創建一個httpd.ini文件和一個可能的重定向.conf文件,但沒有任何工作。

有人能告訴我如何創建正確的文件,然後改寫如下:

http://aspectexhibitions.co.uk/

應該重定向到:

http://www.aspectexhibitions.co.uk/

-

http://www.aspectexhibitions.co.uk/index.php http://aspectexhibitions.co.uk/index.php

應該重定向到:

http://www.aspectexhibitions.co.uk/

+0

我們正在運行ISPAI V3 –

回答

0

完成...

[ISAPI_Rewrite] 

#Redirect Non WWW to WWW 
RewriteEngine on 

RewriteCond %{HTTPS} (on)? 
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC] 
RewriteCond %{REQUEST_URI} (.+) 
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L] 

#Redirect index.php to root 
RewriteEngine on 
RewriteBase/

RewriteRule ^index\.php$ http://www.aspectexhibitions.co.uk/ [NC,R=301,L]