How to find HTML name of pages

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
javierdl
Forum Members
Forum Members
Posts: 67
Joined: Tue Oct 09, 2007 7:31 pm

How to find HTML name of pages

Post 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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: How to find HTML name of pages

Post 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
javierdl
Forum Members
Forum Members
Posts: 67
Joined: Tue Oct 09, 2007 7:31 pm

Re: How to find HTML name of pages

Post 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
Last edited by javierdl on Fri Nov 02, 2007 11:02 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: How to find HTML name of pages

Post 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...
javierdl
Forum Members
Forum Members
Posts: 67
Joined: Tue Oct 09, 2007 7:31 pm

Re: How to find HTML name of pages

Post by javierdl »

Alright jmcgin51, thank you so much, I'll go with that one then.

JDL
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How to find HTML name of pages

Post by Dr.CSS »

Render the page, open page, look at address bar...
javierdl
Forum Members
Forum Members
Posts: 67
Joined: Tue Oct 09, 2007 7:31 pm

Re: How to find HTML name of pages

Post 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
Post Reply

Return to “CMSMS Core”