Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Folder on addondomain redirects to root ...

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

trsaso

VIP Member
Impact
73
I have 4 domains and one host account with my site.
Now if I add other domain to addondomain in my host how to use (Share) the same folder for arcade games ? I dont want doubble my space and for that need to share files (swf,img) .
My first site is in root /public_html and new domain will be here /public_html/new.com/
how to do redirection or some other who will work
/public_html/new.com/arcade/ to get files from /public_html/arcade
I hope understand me.
Thanks,
Saso
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Two alternatives - a soft link or mod_rewrite. Soft links don't always work (apache can be configured to disallow them). mod_rewrite may not be supported on your server (ask your host).

If you have shell access, login, then:

cd public_html/new.com
ln -s ../arcade .

If you don't have shell access, the easiest thing would be to ask your web host to do this for you.

For mod_rewrite you'll probably need to move your public_html/arcade from public_html to public_html/new.com/arcade, then create a .htaccess file in public_html with the following:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} maindomain.com [NC]
RewriteRule ^arcade(.*)$ new.com/arcade$1 [L]

Now try visiting your main site arcade and add-on arcade.
 
1
Close
if you have created your first domain or someone created it for you on whm your document root is always
/home/userid/public_html/

succeeding domains created inside cpanel
will be in /home/userid/public_html/domain.com
/home/userid/public_html/domain2.com
always points back to your base path which is /home/userid/public_html/
 
0
Close
qbert220 said:
Two alternatives - a soft link or mod_rewrite. Soft links don't always work (apache can be configured to disallow them). mod_rewrite may not be supported on your server (ask your host).

If you have shell access, login, then:

cd public_html/new.com
ln -s ../arcade .

If you don't have shell access, the easiest thing would be to ask your web host to do this for you.

For mod_rewrite you'll probably need to move your public_html/arcade from public_html to public_html/new.com/arcade, then create a .htaccess file in public_html with the following:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} maindomain.com [NC]
RewriteRule ^arcade(.*)$ new.com/arcade$1 [L]

Now try visiting your main site arcade and add-on arcade.

I have shell access but I dont know how to configure.

Anyway other method mod_rewrite working wery well :)
Thanks man .
Rep+ to both.
ps. Sorry weblord : We're glad that you're fond of this member, but please give some rep points to some other members before giving it to weblord again. :)
 
Last edited:
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back