Page 1 of 1

Point Domain name to a specific webpage

Posted: Wed Jun 03, 2015 11:50 am
by Droopy
Hi
Is it possible to point a domain name to a specific web page ( not the home), e.g. the entry page of a folder ?

If yes, how to do it ?
Thanks in advance for your support

Kind Regards,
R.

Re: Point Domain name to a specific webpage

Posted: Wed Jun 03, 2015 2:29 pm
by staartmees
It's possible with a classic meta refresh in an index.html in that domain name.
http://en.wikipedia.org/wiki/Meta_refresh

Code: Select all

<meta http-equiv="refresh" content="0; url=http://www.example.com/index.php?page=alias_of_the_page">

Re: Point Domain name to a specific webpage

Posted: Thu Jun 04, 2015 8:58 am
by Droopy
I'm not that the above solution answer my question.

I'm looking for :

I go to my broswer: type http://www.example.com
Then the user will see the following page Under http://www.example.com: http://www.actoris.eu/en/online-training.html

Is it possible to do this?

Kind Regards,
Rob

Re: Point Domain name to a specific webpage

Posted: Thu Jun 04, 2015 10:48 am
by staartmees
Of course! Just replace the URL in the example with the URL of your page.

Re: Point Domain name to a specific webpage

Posted: Thu Jun 04, 2015 11:58 am
by Droopy
Sorry to ask again
Today my website is www.actoris.eu, associated to an IP address Annd the training pages are located.
I would like to point the new domain www.example.com to this IP address and then redirect directly the user to : http://www.actoris.eu/en/online-training.html
Is it possible ?

Sorry again for this question :(

Thanks in advance for your support.
R.

Re: Point Domain name to a specific webpage

Posted: Thu Jun 04, 2015 12:14 pm
by Jo Morg
Unless you are not explaining well what you want, there is already a valid answer to your question on this thread.
P.S.: You can also use .htaccess rewrite rules for that.... google for how to do this as there are several ways....

Re: Point Domain name to a specific webpage

Posted: Thu Jun 04, 2015 12:31 pm
by velden
DNS is about connecting a domain name to an ip address. NOT to a specific page.

Like JoMorg said you could use rewrite_rules to rewrite request to that specific domain name to the specific page. However, I'm not sure if that would work out well; by default cmsms uses the used domain name as root_url unless you explicit set root_url variable in config.php. This could be important to realize for subsequent request via internal links, menu or even loading assets (like images, stylesheets etc). Do some thorough testing.

There's another technique that may be useful for your goal: http://en.wikipedia.org/wiki/URL_redire ... _redirects

Re: Point Domain name to a specific webpage

Posted: Thu Jun 04, 2015 1:33 pm
by Rolf
With .htaccess you could use:

Code: Select all

# Redirect domain
RewriteCond %{HTTP_HOST} ^www\.website\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/?$
RewriteRule ^ index.php?page=foo [QSA]

Re: Point Domain name to a specific webpage

Posted: Fri Jun 05, 2015 1:45 pm
by Droopy
I will to explain correctly this time ;)

I have a exisiting website ( usin CMS Made Simple). (actoris.eu)
This website has a section "online training" (http://www.actoris.eu/en/online-training.html)

I have another domain name www.example.com

I would like that when the user type www.example.com then they get and see the "online training" page.

Hope it is clear now.

Is it possible and how to do it ?

Kind Regards,
R

Re: Point Domain name to a specific webpage

Posted: Fri Jun 05, 2015 8:29 pm
by staartmees
See my first reaction about meta refresh

Re: Point Domain name to a specific webpage

Posted: Fri Jun 05, 2015 10:00 pm
by paulbaker
My domain registrar offers domain forwarding, so I would login to the example.com domain settings and set it up like that. Then example.com does not need a website to be set up.

Re: Point Domain name to a specific webpage

Posted: Wed Jun 24, 2015 1:50 pm
by Droopy
Thank you ... the meta refresh (first answer) works :)