简体   繁体   English

使用ISAPI_rewrite3 Lite在Plesk上进行URL重写

[英]URL-rewriting on Plesk using ISAPI_rewrite3 Lite

I am using Plesk Windows based web server with Windows 2008 server OS with IIS-6 for my e-commerce website. 我在电子商务网站上使用带有IIS-6的Windows 2008 Server OS和基于Plesk Windows的Web服务器。

I want to rewrite URLs for all dynamic pages, So I installed ISAPI_Rewrite 3 Lite on my web server also I had uploaded the .htaccess file with the basic rules as follows 我想重写所有动态页面的URL,所以我在Web服务器上安装了ISAPI_Rewrite 3 Lite,并且我已经按照以下基本规则上传了.htaccess文件

RewriteEngine on
RewriteRule ^contact\.html$ contactus.php? [NC,R]

I never worked before with ISAPI neither on URL- rewriting. 我以前从未在URL重写上使用过ISAPI。

My doubt is 我的疑问是

  1. How should I proceed after installation 安装后我应该如何进行
  2. Should I upload .htaccess or 我应该上传.htaccess还是
  3. httpd.conf file OR This s/w has ISAPI_Rewrite Manager which gives place to edit httpd.conf , Should I write rules on this. httpd.conf文件或此软件具有ISAPI_Rewrite Manager,该编辑器可用来编辑httpd.conf ,我应该对此编写规则。

Anyways I had tried all these steps but unfortunately I couldn't find any remedies. 无论如何,我都尝试了所有这些步骤,但不幸的是我找不到任何补救措施。 Any immediate solution will be appreciable. 任何立即的解决方案都是可取的。

You use ISAPI_Rewrite manager to load .htaccess or httpd.cong files. 您使用ISAPI_Rewrite管理器加载.htaccess或httpd.cong文件。 That's it. 而已。 You PLESK may have permissions issues with ISAPI_Rewrite. 您PLESK可能具有ISAPI_Rewrite的权限问题。 All you need to do is to remove PLESK admin users from NTFS permissions for ISAPI_Rewrite folder and for .htaccess files that are located in the root of web-site. 您所需要做的就是从ISAPI_Rewrite文件夹和网站根目录中的.htaccess文件的NTFS权限中删除PLESK管理员用户。

May be the problem is that you are using "Lite" version. 可能的问题是您使用的是“ Lite”版本。 One of its limitations would be 其局限性之一

No support for distributed .htaccess configurations, directory and web site level configurations. 不支持分布式.htaccess配置,目录和网站级别的配置。 Only one global httpd.conf configuration file will be loaded from Lite version installation folder. 从Lite版本安装文件夹中仅加载一个全局httpd.conf配置文件。

So you need to use httpd.conf probably. 因此,您可能需要使用httpd.conf。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM