• 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.

serverwide complete url rewriting

J

jamalahmed

Guest
hi every one,
I am using plesk 8.0.1 on ubuntu 5.10, I have searched high and low in the forums as well as the internet, but the subject of Mod_rewrite eludes me.
I wonder if any of you good people can help:)

My problem is: I want to use mod_rewrite to redirect all my domain admins to the plesk interface,
for example: if a domain administrator type http://their_domain.tld/plesk, it should get redirected to https://their_domain.tld:8443.

I do not want to do that in a domain by domain basis (i.e editing vhosts.conf file for every domain). I would rather it worked in server wide basis.

so far all I could come up with is:
RewriteEngine on
RewriteRule ^(.*)/plesk http://$1:8443


but it does not work.

any help on that matter would be appreciated by me, and most of all, by my domain admins.

thanks in advance

PS. I am doing all the changes in the main apache2.conf file...
 
thanks for the reply :)

I understand where you are coming from,
but you see, I have almost 32 domains and I would like to dynamically redirect the domain owners to https://their_domain.tld:8443, (note the bold typeface).

how would you suggest I do that with mod_alias?
 
I'll have something that works for you shortly.

Needs to be within mod_rewrite not mod_alias.
 
Originally posted by DCNet_James
I'll have something that works for you shortly.

Needs to be within mod_rewrite not mod_alias.

Any Luck yet!!?
 
Back
Top