View Full Version : url reconstruction
Mehok
01-23-2008, 02:11 PM
what about a url reconstruction for example
on my website there is a SL Gallery section
http://www.mehokahrimanovic.com/gallery/index
now when someone clicks on that section i can have a shorter address like
http://www.mehokahrimanovic.com/gallery=?page1
is that possible with an xhtml and css based design
jc_gmk
01-23-2008, 02:58 PM
you could change it to:
http://www.mehokahrimanovic.com/?p=gallery
or
http://www.mehokahrimanovic.com/?p=gallery&page=1
but you would need to use PHP.
Read this: http://www.dynamicdrive.com/forums/showthread.php?p=125609
Mehok
01-23-2008, 03:56 PM
The Problem with that is that my website is alreaddy made in XHTML and CSS it would take time is there another solution
jc_gmk
01-23-2008, 04:42 PM
You can still carry on using XHTML and CSS.
PHP is a server-side language that just outputs standard HTML!
The idea behind ?p=gallery&page=2 is that you are sending information to the next page to use.
If you use the above on the end of your url you are just sending some simple instructions to the next page e.g.
p = gallery
page = 2
Then the next page would use that information e.g.
IF p = gallery - "Display this content"
IF p = somethingelse - "display some other content"
Definatly worth learning if you've got the time!
http://www.w3schools.com/php
Don't know of any other way myself.
Mehok
01-24-2008, 10:28 AM
ok i will try it when i have time
thanks
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.