Dragosvr92 Posted September 8, 2010 Author Share Posted September 8, 2010 Thanks The redirection from http://localhost/Track.php Works Just a small problem tho....... it redirects to http://localhost/Track/ And on submit it redirects to this http://localhost/Track/Track/79.113.108.166 That Front Slash From the end of this link seems to cause it http://localhost/Track/ if you Browse to http://localhost/Track (without the slash) it works correctly Thanks again and sorry for this long thread and questions Edit: i think i fixed it i changed : RewriteRule . /Track/%1? [NC,R,L] to RewriteRule . /Track%1? [NC,R,L] ================================ Could you please tell me how may i get the Script Working on my Windows Machine also? i am not able to browse to any of this links http://localhost/Track.php http://localhost/Track http://localhost/Track/79.113.108.166 they all give me a 404 Error Not Found The requested URL /Track/79.113.108.166 was not found on this server. Quote Link to comment https://forums.phpfreaks.com/topic/206812-htaccess-url-rewrite/page/2/#findComment-1108754 Share on other sites More sharing options...
wildteen88 Posted September 9, 2010 Share Posted September 9, 2010 Whether its ran on Linux/Windows server it should work the same. Jut make sure you have placed the mod rewrite code within an .htaccess file that is in the same directory as track.php Quote Link to comment https://forums.phpfreaks.com/topic/206812-htaccess-url-rewrite/page/2/#findComment-1109122 Share on other sites More sharing options...
Dragosvr92 Posted September 9, 2010 Author Share Posted September 9, 2010 the code is place into a .htaccess file otherwise it wouldnt work for me it must need some modules activated but i have no idea which i only activated the Rewrite_module there are other modules activated that came with the wamp settings Quote Link to comment https://forums.phpfreaks.com/topic/206812-htaccess-url-rewrite/page/2/#findComment-1109146 Share on other sites More sharing options...
wildteen88 Posted September 9, 2010 Share Posted September 9, 2010 No, only the mod rewrite module is required. The other modules are enabled by default on a clean Apache install Quote Link to comment https://forums.phpfreaks.com/topic/206812-htaccess-url-rewrite/page/2/#findComment-1109148 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.