| Author |
|
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 24 June 2008 at 4:30pm | IP Logged
|
|
|
I'm a novice with IIS server, installed ISAPI Rewrite 3 and am trying to write a rule to 301 redirect non www domain to www.
Rule as below, used on Apache and works fine but not on IIS, .htaccess file contains:
RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^domain\.co\.uk$ [NC] RewriteRule ^(.*)$ http://www.domain.co.uk/$1 [R=301,L]
Any suggestions would be really appreciated .... Does IIS need to be restarted to reload .htaccess eachtime it is changed ?
__________________ Energlevel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3885
|
| Posted: 25 June 2008 at 5:06am | IP Logged
|
|
|
Please check whether ISAPI_Rewrite filter is up and running. What version of ISAPI_Rewrite are you using? Do you have any other rules working?
__________________ Regards,
Anton
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 15 July 2008 at 8:46pm | IP Logged
|
|
|
OK .... I have spoken with host that provided the server and they say the filter is installed and running, details:
ISAPI_rewrite version 3
Plesk 8 (30 domain) installed on server
.htaccess file created in httpdocs of domain, one rule in the file:
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^domain\.co\.uk$ RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]
Thanks
__________________ Energlevel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3885
|
| Posted: 16 July 2008 at 3:37am | IP Logged
|
|
|
Plesk installs ISAPI filter by default on it's domains: Filter name: urlprotect Executable: C:\SWSoft\Plesk\isapi\urlprotect.dll Please try to remove that filter in the following way: IIS MGR > System > yourdomain.xxx > (right-click) Properties > ISAPI Filters > Select the urlprotect and click Remove. The filter is applied by default to each site, but not IIS entirely.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 17 July 2008 at 3:43pm | IP Logged
|
|
|
Sorry, I'm a complete novice with windoes servers, can Im do this via Plesk control panel?
__________________ Energlevel
|
| Back to Top |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 348
|
| Posted: 18 July 2008 at 7:13am | IP Logged
|
|
|
Hi energylevel!
Please check your permissions according to http://www.helicontech.com/isapi_rewrite/doc/security.htm
__________________ Kind regards!
Vyacheslav.
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 20 July 2008 at 6:47pm | IP Logged
|
|
|
Permissions appear to be OK, I also added this to the httpd.conf:
RewriteLogLevel 9 LogLevel debug
Still no joy .. is there a support service so I can get someone from helicon to look at the configuration?
Thanks ....
__________________ Energlevel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3885
|
| Posted: 21 July 2008 at 4:43am | IP Logged
|
|
|
Please send your configuration and log files to support@helicontech.com.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 21 July 2008 at 2:57pm | IP Logged
|
|
|
Thanks, I emailed them last night ... just waiting for reply ....
__________________ Energlevel
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 21 July 2008 at 5:41pm | IP Logged
|
|
|
Don't know whether this helps, I ran this rule sucessfully from the httpd.conf file but doesnt work from the domain/httpdocs/.htaccess file:
RewriteCond %{HTTPS} (on)? RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC] RewriteCond %{REQUEST_URI} (.+) RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]
__________________ Energlevel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3885
|
| Posted: 22 July 2008 at 5:46am | IP Logged
|
|
|
Are you using Free or Full version of ISAPI_Rewrite? Unfortunately, we haven't received your email. Can you please resend it.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 22 July 2008 at 7:17am | IP Logged
|
|
|
I think we have full version ... I've just resent the email now ... thanks
__________________ Energlevel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 3885
|
| Posted: 22 July 2008 at 8:40am | IP Logged
|
|
|
Please set permissions as per http://www.helicontech.com/isapi_rewrite/doc/security.htm Your .htaccess file is not loaded due to insufficient permissions.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 22 July 2008 at 8:59am | IP Logged
|
|
|
User SYSTEM has full control permissions on the httpdocs folder and I don't know what else to do now?
__________________ Energlevel
|
| Back to Top |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 348
|
| Posted: 22 July 2008 at 9:11am | IP Logged
|
|
|
Hi Paul.
What about IIS_WPG user? Please carefully check your permissions.
__________________ Kind regards!
Vyacheslav.
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 22 July 2008 at 9:20am | IP Logged
|
|
|
there is NO IIS_WPG user listed for httpdocs, should I add ? I'm really not sure now??
__________________ Energlevel
|
| Back to Top |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 348
|
| Posted: 22 July 2008 at 9:30am | IP Logged
|
|
|
Yes, of course. Add it and give necessary rights.
__________________ Kind regards!
Vyacheslav.
|
| Back to Top |
|
| |
energylevel Newbie

Joined: 24 June 2008
Online Status: Offline Posts: 32
|
| Posted: 22 July 2008 at 11:18am | IP Logged
|
|
|
Thank you for your help Vyacheslav, it is really appreciated, I think it is working corrrctly now...
__________________ Energlevel
|
| Back to Top |
|
| |