lin Posted April 22, 2006 Share Posted April 22, 2006 hi allhow is possible to remove the .php from the url egbefore[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 https://forums.phpfreaks.com/topic/8097-how-to-remove-the-php-from-the-url/ Share on other sites More sharing options...
Ninjakreborn Posted April 22, 2006 Share Posted April 22, 2006 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 https://forums.phpfreaks.com/topic/8097-how-to-remove-the-php-from-the-url/#findComment-29521 Share on other sites More sharing options...
lin Posted April 22, 2006 Author Share Posted April 22, 2006 sorry my mistake what i should of wrote waswhen 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 https://forums.phpfreaks.com/topic/8097-how-to-remove-the-php-from-the-url/#findComment-29560 Share on other sites More sharing options...
redbullmarky Posted April 22, 2006 Share Posted April 22, 2006 [!--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 waswhen 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 https://forums.phpfreaks.com/topic/8097-how-to-remove-the-php-from-the-url/#findComment-29561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.