Pages are in HTML, but in PHP?

  • 2
  • Question
  • Updated 8 years ago
  • Answered
Hello Yola!
I was just wondering something, all the extensions for pages are .php, which indicates the pages should be written in PHP. But when I look at my page's source, it's in HTML! What's up with that?
Thanks
Callum Booth
Photo of Callum

Callum

  • 357 Posts
  • 32 Reply Likes
  • unsure

Posted 8 years ago

  • 2
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
<!--
Hi, this is because the sitebuilder is made with php. So, they all have .php, but they are html. But, I wish it did not say ".php" at the end because it doesn't look nice! I wish it was like: <b>http//example.yolasite.com/page1/</b> instead of: <b>http://example.yolasite.com/page1.php...> But, that is why it has .php at the end.
-->
Photo of Callum

Callum

  • 357 Posts
  • 32 Reply Likes
Thanks for that Nathan! I agree it doesn't look too good!
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Yeah, maybe someday Yola will come up with something that will make it like the getsatisfaction.com pages. They don't have any .html or .php extension! Check it out: http://getsatisfaction.com/about/
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hello Callum,

At this time there will always be a .php on the end of your URLs, possibly in the future we will look a the option of removing this. Thanks for letting us know what you are interested in seeing :)

Emmy
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
Hi guys,

Just thought I would chime in here and explain a couple of things.

Your website actually uses alot of PHP and without the pages being saved as .php the PHP code would not work.

PHP is a server side language that sneds requests to a server and then outputs it's results into some from of HTML mark up. All web pages are built up primarily from HTML and then other languages, PHP, Javascript etc. run along side the basic HTML structure.
When you look at the source code of a page you will never see the PHP code, if you look at a facebook page source code for example you may see HTML and Javascript but you won't actually see the PHP code. It's there but can not be seen and it's exactly the same with your Yola page.

The main point I wanted to get across is PHP is the coolest of page extensions - Your better with index.php rather than index.html any day, or .htm (which I hate even more).

Finally, the experts at Yola have already set it up on their servers so that you can work your site without page extensions.
If you want no extension then just don't include the extension in links (internal and inbound) Only built in menu pages don't allow for this.
For example if you linked a page like < a href = "http://mydomain/mypage" >
'mypage' would be displayed without an extension.

Hope this helps.

Lee.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Thanks for that, but, when I do link to the page without the .php, it puts .php right in. example: http://www.nathansmusicstudio.cz.cc/s...

But, if they did come up with a way to just hide the .php extension, that would be great. But now I understand. But, they could just use some code to hide the .php but not completely take it off.
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
They used to Nathan - I did'nt realise it had changed - maybe something to do with blog pages - they can not work without the extension.

Sorry for the wrong info.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
It's okay Lee.