• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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