• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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