Jump to content

mod_rewrite help


Recommended Posts

hey everybody, i have been developing in php for 2 years. I've recently been playing with mod_rewrite but it never works. I've followed many tutorials online and it still doesn't work. Oh yeah, and I'm doing this all on localhost. my htaccess file is in the root directory of my website and has this in it.

 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /invisibledesign/wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /invisibledesign/wordpress/index.php [L]
</IfModule>

 

since it doesn't work in any sites I've tried (also tried in wordpress), i think it must be something with my configuration of my server. in my httpd.config these two things are enabled.

 

LoadModule rewrite_module     libexec/httpd/mod_rewrite.so
AddModule mod_rewrite.c

 

is there anything i have to change in the httpd.config. Can anybody throw ideas at me, to get it working. Even if there completely noob ideas, i wouldn't rule anything out Laughing.

Link to comment
https://forums.phpfreaks.com/topic/49891-mod_rewrite-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.