ToonMariner Posted January 24, 2007 Share Posted January 24, 2007 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 +FollowSymlinksRewriteEngine onRewriteBase /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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.