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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.