Jump to content

Archived

This topic is now archived and is closed to further replies.

perezf

Curiosity

Recommended Posts

i was curious in knowing how to display for instance
www.yoursite.com/page=home
instead of www.yoursite.com/home.php

does anyone know how to accomplish this and if so can you help me

Share this post


Link to post
Share on other sites
[code]<?php
include (isset($_GET['page']) && !strpos($_GET['page'],".")) ? $_GET['page'].".php" : default.php;
?>[/code]

Share this post


Link to post
Share on other sites
[!--quoteo(post=376074:date=May 22 2006, 12:33 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 22 2006, 12:33 PM) [snapback]376074[/snapback][/div][div class=\'quotemain\'][!--quotec--]
[code]<?php
include (isset($_GET['page']) && !strpos($_GET['page'],".")) ? $_GET['page'].".php" : default.php;
?>[/code]
[/quote]

how would i customize it to work with for instance 2 differ pages and where do i put this code

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.