Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on
【.htaccess】【proxy】Could not rewrite to subfolder
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

【.htaccess】【proxy】Could not rewrite to subfolder

Hi everyone,

I'm not good at .htaccess and I've recently created a website in a docker and I've already successfully redirect it to mydomain.tld. The problem is, I want it to be in the subfolder, just like: mydomain.tld/subfolder.

My current htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

REWRITERULE ^(.*)$ http://dockerghostblog/$1 [P]



Sign In or Register to comment.