catalankh Posted January 8, 2013 Share Posted January 8, 2013 my mod_rewrite is not affect to my link why? Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_URI} news/ RewriteCond %{REQUEST_URI} tips/ RewriteCond %{REQUEST_URI} views/ RewriteRule news/ menu.php?ph_sc_menu_id=1 [L] RewriteRule tips/ menu.php?ph_sc_menu_id=2 [L] RewriteRule views/ menu.php?ph_sc_menu_id=3 [L] if i key on my url box it working but when i click my navigation menu it still display menu.php?ph_sc_menu_id=3 Link to comment https://forums.phpfreaks.com/topic/272869-mod_rewrite-not-affect-to-my-link/ Share on other sites More sharing options...
cpd Posted January 8, 2013 Share Posted January 8, 2013 That's not how you should be using mod_rewrite. You can't define every link and every possible bit of GET data, that's just crazy. Go an have a read on what it should be used for and then how to use it. Link to comment https://forums.phpfreaks.com/topic/272869-mod_rewrite-not-affect-to-my-link/#findComment-1404302 Share on other sites More sharing options...
catalankh Posted January 9, 2013 Author Share Posted January 9, 2013 though to i write like that it not worke too RewriteEngine On RewriteRule ^menu/([0-9]+) menu.php?ph_sc_menu_id=$1 what's going on? Link to comment https://forums.phpfreaks.com/topic/272869-mod_rewrite-not-affect-to-my-link/#findComment-1404478 Share on other sites More sharing options...
cpd Posted January 9, 2013 Share Posted January 9, 2013 I have no idea what the hell that post is meant to mean... Link to comment https://forums.phpfreaks.com/topic/272869-mod_rewrite-not-affect-to-my-link/#findComment-1404491 Share on other sites More sharing options...
gizmola Posted January 10, 2013 Share Posted January 10, 2013 mod_rewrite rewrites requests. In other words, when people use a browser and type in a url, mod_rewrite can be used to modify that to something different inside Apache. It does not *change the html your script sends back*. If you want your urls to be displayed in a particular format, you must render them in that format. Link to comment https://forums.phpfreaks.com/topic/272869-mod_rewrite-not-affect-to-my-link/#findComment-1404573 Share on other sites More sharing options...
catalankh Posted January 20, 2013 Author Share Posted January 20, 2013 cpd what the fucking going on with you why you always reply with hell worthless answer if you don't know or understand my question keep silent no one said you're blind or dump dam stupid Link to comment https://forums.phpfreaks.com/topic/272869-mod_rewrite-not-affect-to-my-link/#findComment-1407030 Share on other sites More sharing options...
cpd Posted January 20, 2013 Share Posted January 20, 2013 I don't always give bad, incomplete or pointless answer. My first post made a point, explained why and told you where to go and correct it (through google) because explaining every little details is silly on here when its been done a million other times by other people. My second post clearly indicates you're posts don't make sense which may be why you have little responses. Gizmola hasn't directly answered your question but instead gone on a tangent explaining in brief what mod_rewrite is for; this is what I told you to lookup in my first post. Link to comment https://forums.phpfreaks.com/topic/272869-mod_rewrite-not-affect-to-my-link/#findComment-1407052 Share on other sites More sharing options...
Recommended Posts