Jump to content


Photo

how to remove the .php from the url


  • Please log in to reply
3 replies to this topic

#1 lin

lin
  • New Members
  • Pip
  • Newbie
  • 5 posts
  • LocationSomewhere in the United Kingdom, I think!

Posted 22 April 2006 - 01:07 AM

hi all

how is possible to remove the .php from the url eg

before
[a href=\"http://www.domain.com/file.php?id=1\" target=\"_blank\"]http://www.domain.com/file.php?id=1[/a]

after
[a href=\"http://www.domain.com/file?id=1\" target=\"_blank\"]http://www.domain.com/file?id=1[/a]

thanks

lin

#2 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 22 April 2006 - 01:26 AM

what would the point be your php processor would have troubles, save all your php files .php, if your file has no php in it, then just open the file, click save as, save as filename.htm if that is the extension you want, then delete the other one and redo your links, if you have dreamweaver, or frontpage then it reroutes all the links for you automatically, if you need help I can see what I can do but I need your server host information.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#3 lin

lin
  • New Members
  • Pip
  • Newbie
  • 5 posts
  • LocationSomewhere in the United Kingdom, I think!

Posted 22 April 2006 - 09:59 AM

sorry my mistake what i should of wrote was


when you have [a href=\"http://www.domain.com/folder/\" target=\"_blank\"]http://www.domain.com/folder/[/a] the index page displays with out showing file index.php. Say i had a url of [a href=\"http://www.domain.com/folder/?continue=skasjasd\" target=\"_blank\"]http://www.domain.com/folder/?continue=skasjasd[/a] is it possible to take the / out between the folder directory and ? so it looks like this [a href=\"http://www.domain.com/folder?continue=skasjasd\" target=\"_blank\"]http://www.domain.com/folder?continue=skasjasd[/a]


thanks

#4 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 22 April 2006 - 10:28 AM

[!--quoteo(post=367426:date=Apr 22 2006, 10:59 AM:name=lin)--][div class=\'quotetop\']QUOTE(lin @ Apr 22 2006, 10:59 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
sorry my mistake what i should of wrote was
when you have [a href=\"http://www.domain.com/folder/\" target=\"_blank\"]http://www.domain.com/folder/[/a] the index page displays with out showing file index.php. Say i had a url of [a href=\"http://www.domain.com/folder/?continue=skasjasd\" target=\"_blank\"]http://www.domain.com/folder/?continue=skasjasd[/a] is it possible to take the / out between the folder directory and ? so it looks like this [a href=\"http://www.domain.com/folder?continue=skasjasd\" target=\"_blank\"]http://www.domain.com/folder?continue=skasjasd[/a]
thanks
[/quote]

might be worth you having a look on google or through phpfreaks for 'mod_rewrite' if you're using apache as your webserver. as long as it's within your domain, you could literally allow almost ANYTHING to pass as a valid URL.
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users