PHP - Moved: Php Mod Rewrite And Handling Variables
This topic has been moved to mod_rewrite.
http://www.phpfreaks.com/forums/index.php?topic=314375.0 Similar Tutorialsmod rewrite on easy php: EasyPHP says to set the following in apache config : http://www.easyphp.org/faq.php#0 Quote Uncomment LoadModule rewrite_module modules/mod_rewrite.so In <Directory "${path}/www"> section replace AllowOverride None by AllowOverride All I have done as the guide requested on easyPHP and restarted the easyPHP. writing a modrewite into the .htaccess following this guide: http://www.debian-administration.org/articles/136 Resulted in a .htaccess like so: Code: [Select] RewriteEngine on RewriteRule ^/route/([A-Za-z0-9]+)$ /?route=$1 [PT] With this all in place and the url of the easyPHP index page is: http: //127.0.0.1:8080/testsite/ I added a link on the home page like this: http: //127.0.0.1:8080/testsite/route/hello but the link doesnt work. the .htaccess isn't kicking in it seems. Is it not meant to be seen in the php as: http: //127.0.0.1:8080/testsite/?route=hello So that i can grab the route from the $_GET? Hi all, Thanks for reading. I'm developing my first website with user registration, login, and account settings, and I was wondering what the best way would be to prevent the site from security flaws, SQL injection, etc. I've read up on it, but, as an example, would the following be suitable? Code: [Select] $username = trim(stripslashes(mysql_real_escape_string($_POST['username']))); I guess what I'm asking is, is the above normal? Is there a simpler way to make input from the user secure? Thank you. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=357919.0 This topic has been moved very early in the morning to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=359281.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=346275.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=333344.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=318852.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=325762.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=332483.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=357227.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=349451.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=314170.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=321165.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=329079.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=318793.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=326189.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=325281.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=333654.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=359577.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=315930.0 |