Mobile app version of vmapp.org
Login or Join
Gail5422790

: Web url forwarding to different port and subdirectory I would like to forward anyone going to subdomain.old-domain.com:8014 to this new address subdomain.new-domain.com:8000/subdirectory (note a different

@Gail5422790

Posted in: #Dns #DomainForwarding #Domains #Subdomain

I would like to forward anyone going to subdomain.old-domain.com:8014 to this new address subdomain.new-domain.com:8000/subdirectory (note a different domain AND different port PLUS a subdirectory)

Is it possible in a web host (such as Bluehost) using cPanel DNS Editor or some form of URL redirection with port redirect included?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

1 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

It depends if Bluehost allows port redirection using an .htaccess file, try this:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain.old-domain.com$ [NC]
RewriteCond %{SERVER_PORT} ^8014$
RewriteRule ^(.*)$ subdomain.new-domain.com:8000/subdirectory/ [R=301,L]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme