Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Redirect ISPAI重写301重定向/SEO Windows服务器上的URL规范化_Redirect_Isapi Rewrite_Canonical Link - Fatal编程技术网

Redirect ISPAI重写301重定向/SEO Windows服务器上的URL规范化

Redirect ISPAI重写301重定向/SEO Windows服务器上的URL规范化,redirect,isapi-rewrite,canonical-link,Redirect,Isapi Rewrite,Canonical Link,我刚开始使用windows服务器,并且知道它是为ISPAI重写而设置的 我尝试过创建一个httpd.ini文件和一个带有可能重定向的.conf文件,但没有任何效果 有人可以告诉我如何创建正确的文件,然后重写以下内容: 应重定向到: -- 应重定向到: 完成 [ISAPI_Rewrite] #Redirect Non WWW to WWW RewriteEngine on RewriteCond %{HTTPS} (on)? RewriteCond %{HTTP:Host} ^(?!w

我刚开始使用windows服务器,并且知道它是为ISPAI重写而设置的

我尝试过创建一个httpd.ini文件和一个带有可能重定向的.conf文件,但没有任何效果

有人可以告诉我如何创建正确的文件,然后重写以下内容:

应重定向到:

--

应重定向到:

完成

[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]