Jump to content

Recommended Posts

Not sure if this is the best place to ask this, but I can't hurt so...

 

I've installed Apache on my home pc for internal development, and I just recently wanted to start up a project that would work best with mod_rewrite. I've searched these forums and the web and have found very little on setting it up with Apache.

 

I found one tutorial that was incomplete on how to set it up, to say the least. They mentioned you needed to configure it with the following settings:

 

./configure

--enable-module=rewrite

--enable-shared=rewrite

I went into my httpd.conf file to see what was set up and found that the LoadModule line for mod_rewrite was commented out, so I uncommented it and still nothing works. I'm also unsure of where in the file to place the configuration options, so I have left them out as of now.

 

All I'm trying to do is use the RewriteRule options in my root .htaccess file to clean up the URLs. Here's the code I have in it so far:

 

RewriteEngine On
RewriteRule ^/gallery/index/ /image_gallery/index.php

I'm not sure what else to say, so if you can help me I'd really appreciate it. If you need any more info, feel free to ask.

Link to comment
https://forums.phpfreaks.com/topic/2548-setting-up-mod_rewrite-in-apache/
Share on other sites

This Apache forum is quite new actually. I have been trying to get this working on my XP Pro box too with no luck, as far as I am aware all I had to do was add/uncomment the line:

LoadModule rewrite_module modules/mod_rewrite.so

But still no luck, any one else have any ideas?

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.