Azu Posted July 3, 2007 Share Posted July 3, 2007 Hello I am trying to make all my URLs clean, and I'm almost done but I have encountered one little problem.. I have a forum that is get not post, and it puts &s into the URL instead of putting /s like it is supposed to. Please tell me how I can fix it so that it uses / instead of & This is the part of the form that is bugged <input type='hidden' name='t' value='1'/> Please say how I can fix it so that instead of putting in "&t=1" it puts in "/t=1" like it is supposed to. The reason I am using GET for this instead of POST is that people should be able to link to this, and it should show up in the URL bar and be able to be changed etc etc.. but anyway ya please tell me how to fix it Link to comment https://forums.phpfreaks.com/topic/58229-clean-urls-removing/ Share on other sites More sharing options...
DeathStar Posted July 3, 2007 Share Posted July 3, 2007 URL Encoding for / is: %2F. try this anyway: url_decode($value); Link to comment https://forums.phpfreaks.com/topic/58229-clean-urls-removing/#findComment-288720 Share on other sites More sharing options...
trq Posted July 3, 2007 Share Posted July 3, 2007 Please say how I can fix it so that instead of putting in "&t=1" it puts in "/t=1" like it is supposed to. / in a url meen a new dir to http. You really ought stick to the standard proticol. If you want to do this properly, use mod_rewrite. Link to comment https://forums.phpfreaks.com/topic/58229-clean-urls-removing/#findComment-288723 Share on other sites More sharing options...
Azu Posted July 4, 2007 Author Share Posted July 4, 2007 I thought that it is bad to have &s in the URLs because it messes up the search engines and stuff? If I used mod-rewrite wouldn't it still be in the URL? Link to comment https://forums.phpfreaks.com/topic/58229-clean-urls-removing/#findComment-289432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.