I'm setting my .htaccess
file right now to use friendly urls (manually). But, when i go to the url the server shows me Error 404.
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
Rewriterule ^register$ register.php
I'm really sure that mod_rewrite is enabled because i see it when use phpinfo()
.
Even though mod-rewrite
is enabled, by default it is not enabled for .htaccess
files.
Hold Your Breath
Config
button on the Apache row, and select httpd.conf
xampp/htdocs">
# AllowOverride All
. Remove the #
, which is a commentAllowOverride All
, make sure it is in the right section, and remove the comment #
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With