Config domain to point to subfolder

What a pain. I got a server with tophost.gr based on speeds/location… I’ve tried contacting customer support about this problem, but live chat times out to a ticketing form…useless.

I really need help configuring this domain to a subfolder. Have played with it so much, it’s probably all messed up now!

domains listed in plesk with ip

dir structure

subfolder

root htaccess file states:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?bisi.bid$
RewriteCond %{REQUEST_URI} !^/bisi.bid/public/  
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /bisi.bid/public/$1
RewriteCond %{HTTP_HOST} ^(www.)?bisi.bid$
RewriteRule ^(/)?$ bisi.bid/public/index.php [L]

plesk dns settings

domain dns-zone settings

Noticed… ip http://185.4.135.94/ goes to a parallels web server default page that I cant find in my dir

http://bisi.bid.185-4-135-94.reseller20.grserver.gr/
goes to the php root doc I want, but I cannot tie the domain to this…

Help much needed and greatly appreciated

You haven’t told us what domain you are trying to redirect.

Also, is the domain registered with the hosting provider or do you have it registered somewhere else?

Not sure how, but everything is working fine now. Just wondering if there will be any complications when using a dir outside of html_public/httpdocs …

Suppose we’ll wait and see

Well I want the bisi.bid domain to point at the bisi.bid sub-directory
The domain is from onlydomains.com, but I have recently taken it from being parked at onlydomain and assigned it to tophost.gr NS. (thought it’d simplify things all in 1 place)

bisi.bid. NS nsr40.grserver.gr.
bisi.bid. NS nsr39.grserver.gr.

I read that sub directories should be inside html_public, as without an apache restart the forwarding won’t work…The nearest I get to a html_public dir is httpdocs.

using ftp, Ive set bisi.bid as the host and it connects to the root fine.
my htaccess, which is in route dir, looks fine…?

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?bisi.bid$
RewriteCond %{REQUEST_URI} !^/bisi.bid/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /bisi.bid/public/$1
RewriteCond %{HTTP_HOST} ^(www.)?bisi.bid$
RewriteRule ^(/)?$ bisi.bid/public/index.php [L]

So, I’m lost. Perhaps I need to give it a few more days to register changes. Perhaps subdirs need to be made in httpdocs

That is the equivalent folder.By default your main domain should point to that folder once the nameserver changes have made their way to all the domain servers around the world. You would only need to redirect the main domain if you have multiple domains pointing to the hosting and want each in a separate folder.

Ye thanks Fel. This is the route we’ve taken. I sent the domain to my hosts name servers and configured it all from there…Now its all fine.

Thanks again