Point Domain name to a specific webpage

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Droopy
New Member
New Member
Posts: 5
Joined: Wed Jun 03, 2015 11:46 am

Point Domain name to a specific webpage

Post 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.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Point Domain name to a specific webpage

Post 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">
Droopy
New Member
New Member
Posts: 5
Joined: Wed Jun 03, 2015 11:46 am

Re: Point Domain name to a specific webpage

Post 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
Last edited by Jo Morg on Thu Jun 04, 2015 11:11 am, edited 1 time in total.
Reason: Please avoid auto-link of pseudo links by using "Do not automatically parse URLs" checkbox option. Thanks.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Point Domain name to a specific webpage

Post by staartmees »

Of course! Just replace the URL in the example with the URL of your page.
Droopy
New Member
New Member
Posts: 5
Joined: Wed Jun 03, 2015 11:46 am

Re: Point Domain name to a specific webpage

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Point Domain name to a specific webpage

Post 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....
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Point Domain name to a specific webpage

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Point Domain name to a specific webpage

Post 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]
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Droopy
New Member
New Member
Posts: 5
Joined: Wed Jun 03, 2015 11:46 am

Re: Point Domain name to a specific webpage

Post 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
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Point Domain name to a specific webpage

Post by staartmees »

See my first reaction about meta refresh
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Point Domain name to a specific webpage

Post 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.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Droopy
New Member
New Member
Posts: 5
Joined: Wed Jun 03, 2015 11:46 am

Re: Point Domain name to a specific webpage

Post by Droopy »

Thank you ... the meta refresh (first answer) works :)
Post Reply

Return to “The Lounge”