Hi,
Does anyone have a web.config file for IIS that will rewrite SEO URLS in the same way .htaccess does for unix servers?
Thanks
Does anyone have a web.config file for IIS that will rewrite SEO URLS in the same way .htaccess does for unix servers?
Thanks
I understand this is an old post but I figured I'd response in case somebody else is searching...
This is web.config I use and it seems to work for v1.4.9.4
This is web.config I use and it seems to work for v1.4.9.4
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example\.com$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="http://www.example.com/{R:1}" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?_route_={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
SEO URL problem:
I just installed version 1.4.9.4, I have mod-rewrite is installed, removed .txt from the htaccess sheet, checked "Use SEO url's but it is not working. my cart is here www.petusa.net/cart can anyone help me with this problem?
Thanks in advance
I just installed version 1.4.9.4, I have mod-rewrite is installed, removed .txt from the htaccess sheet, checked "Use SEO url's but it is not working. my cart is here www.petusa.net/cart can anyone help me with this problem?
Thanks in advance
I see that your website is working fine with seo friendly urls .
I have renamed ms configed and apache module is also insntalled.
can you please guide me what you did ?
my site is located at www.pakistangifthouse.com/gifts-to-pakistan
I have renamed ms configed and apache module is also insntalled.
can you please guide me what you did ?
my site is located at www.pakistangifthouse.com/gifts-to-pakistan
Hello, can some one explain were to add the IIS file information that is above. I new to this so I need a little hand holding.
Thanks so Much
Todd Pearson
Building8 RC
Thanks so Much
Todd Pearson
Building8 RC
Ok thanks I can do that. Also do I need to change the htaccess file name as well and check the box in the admin panel?jcsmithy wrote:Just save it in your root folder as web.config
Thanks again for all the support...
Todd
Building8rc.com
Hmmm, I can not get it to work properly. After installing the web.config file and then selecting the use seo in the admin settings I get can't show web page 404 err on the site. It is showing the seo url in the address bar but we can not see the page? Again thanks for all the help and support.
Todd
Building RC Products
shop.b8rc.com
Todd
Building RC Products
shop.b8rc.com
Thanks for posting this, worked a treat!ash wrote:I understand this is an old post but I figured I'd response in case somebody else is searching...
This is web.config I use and it seems to work for v1.4.9.4Code: Select all
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Imported Rule 1" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions> <add input="{HTTP_HOST}" pattern="^example\.com$" /> </conditions> <action type="Redirect" redirectType="Permanent" url="http://www.example.com/{R:1}" /> </rule> <rule name="Imported Rule 2" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> <add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="index.php?_route_={R:1}" appendQueryString="true" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
If I forgot to mention: it's OpenCart Vv1.5.6
Who is online
Users browsing this forum: No registered users and 43 guests