• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Is there a UI in Plesk to redirect a url to a subdomain?

PeterK900

Basic Pleskian
Server operating system version
AlmaLinux9
Plesk version and microupdate number
18.0.72 PLSK.12170863.0001
I want to redirect an url like to . I know this is possible by editing the .htacess but is there a UI way of doing this in Plesk? I've looked hard but can't find what I want. If I've missed something obvious, apologies!
 
Thank you.

What I want to do is redirect http://example.com/d100x to http://example.com/d100x/web - i.e simply add a sub-directory to the url.

The way to do this in the article seems to be the last option - Make an existing domain a domain forwarder while keeping the website content (Linux only) - and involves an Additional nginx directive. The example given is to redirect example.com to example.net: with code...

location = / {
return 301 https://example.net/;
}

What I want is to do is a little different. I thought this code would work.

location = /example.com/d10xfff {
return 301 http://example.com/d10xfff/web;
}


This code is saved without error, but has no effect.
What am I doing wrong?
 
I think the better option would be to utilize whatever language you're using to do the redirection or create a PHP file inside d10xfff to look something like this:

PHP:
<?php
// Redirect to a different directory
header("Location: /d10xfff/web");
exit(); // Always use exit() after a header redirect
?>
 
I think the better option would be to utilize whatever language you're using to do the redirection or create a PHP file inside d10xfff to look something like this:

PHP:
<?php
// Redirect to a different directory
header("Location: /d10xfff/web");
exit(); // Always use exit() after a header redirect
?>
Thank you. I'll try this.
 
Back
Top