Jump to content

Getting the config right - PLEAE HELP


ToonMariner

Recommended Posts

OK I am having a problem on my development machine using mod rewrite in htaccess.  All works fine on the live server but I need to emulate this on my machine.

I am running apache 2.0.59 on winXP sp2 (plus all updates).

This is my .htaccess file...

[code]
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^/admin/(.*)? /admin/$1 [NC,L]
RewriteRule !\.(gif|jpg|png|css|pdf|mp4|mpg|mov|swf)$ index.php [NC,L]
[/code]

The only way I can get mod_rewrite to run successfully on my local dvelopment machin is to have the following in the httpd.conf

[code]
<VirtualHost 127.0.0.1>
    ServerAdmin toonmariner_at_here.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/pcis"
    ServerName www.pcis.dev
    RewriteEngine on
    RewriteRule ^/admin/(.*) /admin/$1 [NC,L]
    RewriteRule !\.(gif|jpg|png|css|pdf|mp4|mpg|mov|swf)$ /index.php [NC,L]
</VirtualHost>
[/code]

Problem being is that it isn't accessible on the server so I need to do it the .htaccess route.

I have

[code]
<Directory "C:/Program Files/Apache Group/Apache2/htdocs/pcis">
    Options +FollowSymLinks
    AllowOverride All
</Directory>
[/code]

Which I was lead to believe tells apache to allow the htaccess file to set what ever config settings it chooses.

I would really appreciate some pointers here including which load_modules i must uncomment (obviously i have uncommented teh mod_rewrite one !)

Thank you for your time and efforts...
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.