Jump to content

subdomain or alias


maena

Recommended Posts

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 ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...