url mod

Any problem with PHP can be disscused here
UNDERCOVER
Posts: 115
Joined: Tue Apr 05, 2005 1:02 pm

url mod

Post by UNDERCOVER »

any one know how to make the url from

site.com/index.php to
site.com/index


Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

some of servers have "url rewrite" function try to search something of that....
Image
UNDERCOVER
Posts: 115
Joined: Tue Apr 05, 2005 1:02 pm

Post by UNDERCOVER »

yeah i have but they all says how to change it from like index.php?id=1235468 to like index?id=1234568

or sitename.com/folder/index?123456 like that

but i need to drop the index so it would be like

site.com/index or site.com/folder/index
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

probably i will not be able to help you in this case

P.S. welcome back ;)
Image
Flipper3
Posts: 353
Joined: Tue Feb 28, 2006 12:34 am

Post by Flipper3 »

Have you tried to make the file name "index" (without quotes) and then just make PHP inside that file?
SHAdmin
Posts: 2089
Joined: Sat Dec 18, 2004 11:28 am
Contact:

Post by SHAdmin »

Flipper3 wrote:Have you tried to make the file name "index" (without quotes) and then just make PHP inside that file?
Doing so will download the file index instead of executing it, because unless you manually make changes in your php.ini file, the server will execute a php file only if its extention is .php
UNDERCOVER
Posts: 115
Joined: Tue Apr 05, 2005 1:02 pm

Post by UNDERCOVER »

SHAdmin wrote:Doing so will download the file index instead of executing it, because unless you manually make changes in your php.ini file, the server will execute a php file only if its extention is .php
yeah i new that but im not looking for it any more i had it right the 1st time just messed up on the linking lmfao so thanks all for your help anyways
Rapboy
Posts: 649
Joined: Thu May 04, 2006 2:14 pm

Post by Rapboy »

UNDERCOVER Do u mean something like this [url]http://www.berlage.esprit-sg.nl/[/ul] or simillar??

Because as SHAdmin said removing the .php will resolve in downloading the file.
^ Total Chaos.
Hoping to reach 1,000 post one day on SH
Gizza
Posts: 87
Joined: Sun Apr 22, 2007 5:28 am

Post by Gizza »

What's the different. PHP is better.
Image
Rapboy
Posts: 649
Joined: Thu May 04, 2006 2:14 pm

Post by Rapboy »

yeah he want to use phph, but he wants url moding and the site i posted ([url]http://www.berlage.esprit-sg.nl/[/ulr]) url doesnt change no matter which page u visit. It just stays the same and i wanted to know if he wanted something like that.
^ Total Chaos.
Hoping to reach 1,000 post one day on SH
Post Reply