Jump to content


Photo

subdomain or alias


  • Please log in to reply
15 replies to this topic

#16 maena

maena

    Newbie

  • Members
  • 8 posts

Posted 10 June 2021 - 11:49 PM

Thank you very much !

duo.hh.us is working perfectly !

 

I have a difficulty:

I would like to have only folders on my ftp root:

maena/maena

maena/duo

 

I tried:

maena/maena/.htaccess :

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/\.well-known/
RewriteCond %{HTTP_HOST} !^maena\.heliohost\.us [NC]
RewriteRule ^(.*)$ https://maena.heliohost.us$1 [R=301,L]

 

Result: no effect

 

 

I searched and tried:

maena/.htaccess : (root folder this time)

Redirect /index.html /maena/

 

Result: it works for maena subdomain but it breaks duo subdomain. duo subdomain will appear as : duo.hh.us/maena.

 

I think the goal is not far. Does anyone know how I could redirect the main domain to maena/maena subdomain without impacting duo subdomain ?

Should I just create a subdomain maena in CPanel ? I suppose I cannot because it is the same name as the main domain ?

Should I change the htaccess content for maena/maena ?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users