0

I am fairly new at this so forgive my ignorance.

I have a two word press sites that I maintain. www.example1.com and www.example2.org. The example2.org site's domain name points to https://example1.com/example2

When people reference example2.org, I want them to see example2.org not example1.com/example2. And any subsequent pages, I don't want the example1.com site to show up.

I haven't found any way to do this and perhaps it cannot be done.

In cpanel, the example2/index.php is off the example1/public_html

Thanks in advance!

rjapenga
  • 11
  • 2
  • Who is your hosting provider? This has nothing to do with wordpress. Your hosting provider must fix this for you in case they don't provide a tool to set up this virtual host (point a domain to a specific folder) – Daniel Acevedo Jan 25 '20 at 23:13
  • This is something you can set in cPanel. Can you post your .htaccess for the example1/public_html folder? Also look in your cPanel at domain names and see if there's any forwarding there. – Howard E Jan 26 '20 at 00:43
  • Siteground is my hosting provider. @DanielAcevedo Is what I want to do is to create a virtual host? – rjapenga Jan 27 '20 at 12:09
  • @HowardE Is forwarding what I want to do? I wamt to simply change the address bar. Here is my .htaccess # BEGIN WordPress RewriteEngine On RewriteBase /ListeningToGod/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /ListeningToGod/index.php [L] # END WordPress # Wordfence WAF Require all denied Order deny,allow Deny from all # END Wordfence WAF – rjapenga Jan 27 '20 at 12:11
  • @HowardE - Sorry. That was my .htaccess for example2/public_html. Example1 is too big to include in this file. How do I attach a file to a comment? Sorry again for my ignorance! – rjapenga Jan 27 '20 at 12:23
  • Add it to your question – Howard E Jan 27 '20 at 12:53

1 Answers1

0

You need to add an Addon domain trough Cpanel.

Siteground documentation