• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

htaccess seem not being taken in account on Plesk

C

CBiLL

Guest
I was trying to fiddle around htaccess on my website which runs under Plesk 7.5.2 and I am wanting to redirect a certain ips to another website so I tried the rewrite rule and all combantion of rules with no results at all.

I was thinking that htaccess isn't working so I tried the deny from <my-ip-here> and it did not stop my ip from accessing the website at all.

I already tried restarting apache and still does not follow any new rules I put in my htaccess.

Any step I might be missing? I have adminstrator control to the Plesk .

Also could anyone give me a example of rewrite rule to use in htaccess to redirect a certain ip to another url?

Thanks
Bill
 
Also could anyone give me a example of rewrite rule to use in htaccess to redirect a certain ip to another url?
Replace the xx, yy, zz, nn with the IP address, leave the \. between each number. Change google.com to whatever URL you wish. Make sure you only have a single 'RewriteEngine on' directive. This is a 'simple' example for a single IP as requested.

# Redirect a specific IP to a different URL
RewriteEngine on
RewriteCond %{REMOTE_ADDR} xx\.yy\.zz\.nn
RewriteRule .* http://www.google.com [R]
 
Back
Top