: How do I do URL re-writes on Plesk? I am very new to URL re-writing and I am using Plesk which is window-based web server, hence I can't use Apache's mod_Rewrite. Can anyone tell me what
I am very new to URL re-writing and I am using Plesk which is window-based web server, hence I can't use Apache's mod_Rewrite. Can anyone tell me what is the proper procedure for this?
More posts by @BetL925
4 Comments
Sorted by latest first Latest Oldest Best
gist.github.com/sabbour/e49b3ac9e1438c93d5fb
Just create a web.config file on Notepad or edit the one you have on the root folder of Magento, and copy and paste this:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Remove index.php rule" stopProcessing="true">
<match url=".*" ignoreCase="false"/>
<conditions>
<add input="{URL}" pattern="^/(media|skin|js)/" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
You can import the .htaccess rules on Windows hosting without any problems. If you have access to to IIS manager, just enter it, go to your domain and open the section Url-rewrite rules.Then use the Import button and your rules will be automatically imported to your web.config file.
its isapirewrite.com we have to install this
This s/w will work same as mod_rewrite in windows web servers
They will charge some for s/w
If you use Plesk there is usually a server section where you can configure which Apache modules should be activated. "rewrite" or "mod_rewrite" is the one to activate.
Then it depends on your software or scripts to make actually use of this module.
[Edit]
Do you have the url rewrite extension available or can it be installed? See www.iis.net/downloads/microsoft/url-rewrite
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.