Domain name of the map in the space on the server

I have a domain, for example, domain.org

and a server host with an address http://server/node/myname

.

How can I match domain.org

with http://server/node/myname

so that when domain.org/some/path

I visit I go to http://server/node/myname/some/path

?

The domain service offers me redirects via HTTP / 301 Forwarding or Cloaking Forwarding, but none of them work for me. They just redirect me to http://server/node/myname

when I visit domain.org/some/path

.

+3


source to share


2 answers


If you have access to the apache config, it will be the Directory config in your VirtualHost config part. see https://wiki.ubuntuusers.de/Apache/Virtual_Hosts/



You can write redirects on your site like here: https://en.wikipedia.org/wiki/URL_redirection

+1


source


Modify your .conf file if you have access to Apache config like this ...

RewriteEngine on
RewriteRule ^(.*) http://server/node/myname/$1 [P]

      



This will redirect all traffic for the base URL set above this in this config file.

If you already have a rewrite rule for the .org domain, you can use the scripts on these pages to easily redirect URLs by parsing the .org domain URL in a new line for http: // server / node / .

+1


source







All Articles