Mobile app version of vmapp.org
Login or Join
Sent6035632

: Pointing a domain to a specific URL Is it possible to point a URL to a specific page in cPanel? Say I have foobar.com and there's a page foobar.com/art. Now I also or artbar.com and I want

@Sent6035632

Posted in: #Cpanel #Dns #Redirects

Is it possible to point a URL to a specific page in cPanel?

Say I have foobar.com and there's a page foobar.com/art. Now I also or artbar.com and I want to point it at foobar.com/art how would I do that?

I'm not seeing an option in cPanel to redirect a domain to a specific URL.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sent6035632

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

You can do this by creating a .htaccess file in the root of artbar.com, then simply add the following line:

redirect 301 / newdomain.com/newpath
or if you prefer rewrite method then use something like:

RewriteEngine On
RewriteRule ^(.*)$ newdomain.com/newpath [R=301]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme