Jump to content

Archived

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

lin

how to remove the .php from the url

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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

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.