Bricktop Posted March 1, 2008 Share Posted March 1, 2008 Hi all, Not sure if I would use mod-rewrite of php for this. But I have used mod-rewrite on my entire site and it works great. Only thing is, soome of my requests involve a space, for example "location=The Moon" Mod-rewrite then displays the link in the address bar as /location/The%20Moon/ How can I change the space to appear as a -, so it would look like /location/The-Moon Do I use Mod-rewrite or PHP str_replace for this? Thanks Link to comment https://forums.phpfreaks.com/topic/93871-instead-of-space/ Share on other sites More sharing options...
Bricktop Posted March 1, 2008 Author Share Posted March 1, 2008 Hi all, I did it will str_replace in the end If anyone knows if this is possible with mod_rewrite, I'd still love to know. Please reply to this post if you have any further information. Thanks Link to comment https://forums.phpfreaks.com/topic/93871-instead-of-space/#findComment-481084 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.