On my domain lapagept.com, I have create a subdomain sm.lapagept.com.
When a user enters http://sm.lapagept.com in his browser's address bar, he is redirected to http://173.209.38.131/~sm. The new address in the address bar is changed for http://173.209.38.131/~sm.
Here is the code we use in the .htaccess file on lapagept.com to make this :
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sm\.lapagept\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.sm\.lapagept\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/173\.209\.38\.131\/\~sm" [R=301,L]
My question :
When a user enters http://sm.lapagept.com in his browser's address bar, would it be possible to get redirected to http://173.209.38.131/~sm but to keep http://sm.lapagept.com in his address bar?