snuffish Posted August 25, 2009 Share Posted August 25, 2009 Hi, I wondering one thing about mod_rewrite. We can say that I got a paging system on my page.. like the url says "www.mysite.com/index.php?page=start" and I wanna use mod_rewrite/htaccess to manipulate the URL so it's only says "www.mysite.com" all the time. Is that possible? because I see that's its really risky to put som GET variables sometimes. But It's necessary so.. So I would appreciate if someone could help me with this. Sorry for my english! // Best regards Christoffer. Quote Link to comment https://forums.phpfreaks.com/topic/171812-mod_rewrite-help/ Share on other sites More sharing options...
deansatch Posted August 25, 2009 Share Posted August 25, 2009 You can't really have www.mysite.com all the time otherwise the server wouldn't know when you are on a different page. You can, however, use mod rewrite to make you url more friendly and perhaps make your variable less obvious e.g. www.mysite.com?user_id=4&page=start can be made into: www.mysite.com/4/start -- obviously this way it's harder to work out what the variables are since you are only shown values Quote Link to comment https://forums.phpfreaks.com/topic/171812-mod_rewrite-help/#findComment-905960 Share on other sites More sharing options...
corbin Posted August 27, 2009 Share Posted August 27, 2009 Putting GET variables should never be dangerous. Users should be able to go to any page and not do any harm. Chances are, if putting something in the URL makes it dangerous you need to rethink your security measures on the page. Quote Link to comment https://forums.phpfreaks.com/topic/171812-mod_rewrite-help/#findComment-907252 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.