Jump to content

how to remove the .php from the url


lin

Recommended Posts

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
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

[!--quoteo(post=367426:date=Apr 22 2006, 10:59 AM:name=lin)--][div class=\'quotetop\']QUOTE(lin @ Apr 22 2006, 10:59 AM) [snapback]367426[/snapback][/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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.