Page 1 of 1

How to find HTML name of pages

Posted: Fri Nov 02, 2007 3:59 pm
by javierdl
I need to link to one of my CMSms pages from another web site, how can I find the actual file name?

Thanks,

JDL

Re: How to find HTML name of pages

Posted: Fri Nov 02, 2007 4:11 pm
by jmcgin51
The pages in CMSMS are stored in a database - they typically don't have file extensions, unless you're using mod_rewrite and pretty URLs.  To link to a specific CMSMS page from another site (if you're NOT using pretty URLs), your link would look something like this:
http://yoursite.com/index.php?page=targetpage    //  where targetpage is the alias of the CMSMS page

If you're using pretty URLs and/or mod_rewrite, your link could look something like this:
http://yoursite.com/targetpage
http://yoursite.com/targetpage.html    // (note that the .html file extension in this URL isn't actually calling an HTML page

Re: How to find HTML name of pages

Posted: Fri Nov 02, 2007 5:12 pm
by javierdl
Wow.
For now I only need to redirect donors back to a thanks page within my web site (from a Paypal page). From the choices you gave me, which one would you advise me to go for?

Thanks,

JDL

Re: How to find HTML name of pages

Posted: Fri Nov 02, 2007 9:15 pm
by jmcgin51
for the sake of simplicity, I would redirect to something like
http://yoursite.com/index.php?page=thanks

unless you already have mod_rewrite and/or pretty URLs set up...

Re: How to find HTML name of pages

Posted: Fri Nov 02, 2007 11:03 pm
by javierdl
Alright jmcgin51, thank you so much, I'll go with that one then.

JDL

Re: How to find HTML name of pages

Posted: Sat Nov 03, 2007 1:03 am
by Dr.CSS
Render the page, open page, look at address bar...

Re: How to find HTML name of pages

Posted: Sat Nov 03, 2007 3:07 pm
by javierdl
But of course! Why didn't I think of it?!  ::)
Thanks to this I just learned the importance of having good alias pages :)

JDL