Page 1 of 1
how to load a site via url instead of test through CMSms
Posted: Tue Jul 29, 2008 4:44 pm
by rayh
Hi
I may have missed something in the set up but I can't seem to 'call' my site through a url.
I am testing locally - localhost, the site name is testsite I'm assuming the default page is 'index'.html?
not sure how to call - tried various computations but just get page not found
all displays fine calling through CMSms. but not using a url
I'm sure this is easy and I'm just a fool but this fool is loast.
Thanks
Re: how to load a site via url instead of test through CMSms
Posted: Tue Jul 29, 2008 5:34 pm
by jmcgin51
what is the URL generated when you call the site via CMSMS? The index page is index.php, BTW.
Re: how to load a site via url instead of test through CMSms
Posted: Tue Jul 29, 2008 5:45 pm
by rayh
Hi
It is your right index.php. It was not responding when I did that - but I've just this minute found and read 'your' how to motorise your old static html pages and created a .htaccess file - as instructed- now it responds. Thank ypu
I've also posted another question since trying to work out how to call a 'cms' page from a static and visa-versa - I guess it will be whatever.php and whatever.html
Thank you - Its been a long day of learning and problems so guess I'm not so sharpe right now.
regards
Re: how to load a site via url instead of test through CMSms
Posted: Tue Jul 29, 2008 5:52 pm
by rayh
Hi
Hope you read this again - Yes I can call the index.php page but no other php pages. returns 404 error. Any ideas or do I have to add page names into a config type file somewhere? or is it only the default page which can be 'called that way'. I'm sorry for all these questions but this is really a completely new environment for me so I have a very steep learning curve.
Regards
Re: how to load a site via url instead of test through CMSms
Posted: Tue Jul 29, 2008 7:17 pm
by Dr.CSS
Once you call a page you should have a menu on it, unless you have no other pages...
What are you using to host it locally? XAMPP call is localhost/foldername/...
Re: how to load a site via url instead of test through CMSms
Posted: Tue Jul 29, 2008 7:50 pm
by rayh
Hi Mark
You must be getting fed up with me.
I'm using xampp. I can call the index page.php and of course yes your right I would then use the menu to navigate to the pages which are at that point within the CMS system.
At the moment I have an index page and a guestbook - the rest of tha pages are still static HTML
What I was trying to work out was can I call the guestbook.php other than through the 'index.php' page - menu. I'm thinking useage while I develop the site online for the client. I'm a bit concerned that as I develop a page I will always have to change static links not to the 'new' cms equivilent page but to the index.php page. The article how to motorise your static html does not really explain it like that and I was hoping that because php is 'loaded' in the server then I could call the php from any page static or otherwise but as said at the moment I seem only to be able to 'call' the index.php. My other 'niggle' was that to get it to do that I had to change the alias to shoe 'index' which of course shows in the menu and I think that is ugly. So I'm looking for learning and understanding the 'limitations.
Thanks
Re: how to load a site via url instead of test through CMSms
Posted: Tue Jul 29, 2008 9:19 pm
by jmcgin51
The "'pages" generated by CMSMS are not "pages" in the traditional sense of the word, where each page is a separate PHP or HTML file. They are database-driven pages that load on-the-fly (or can be cached, in some cases), so unless you have some kind of rewrite in place, your Guestbook page is not going to be
www.yoursite.com/guestbook.php. Your guestbook page will be something like
www.yoursite.com/index.php?page=guestbook.
You can use Apache's mod_rewrite to achieve the "traditional" SEO-friendly URL that you want to achieve, but it's not the default for CMSMS.
Re: how to load a site via url instead of test through CMSms
Posted: Tue Jul 29, 2008 9:49 pm
by rayh
Hi
Ah...... Understanding dawns . Thank you so much.
Cheers
R