> -----Original Message----- > From: suppressed > [mailto:suppressed On Behalf > Of William Fiore > Sent: 2006 October 26 -- Thursday 4:56 PM > To: suppressed > Subject: [ic] Rewrite Rule conflicts with server config > > > > Hi, > > I am trying to use the following rewrite rule in my .htaccess file: > > RewriteRule ^ic/model/(.+)\.html$ /ic/phone/$1.html [R=301,L] > > but it doesn't work because it conflicts with the following rule in my > main server configuration: > > RewriteRule ^/ic/?(.*) /cgi-bin/amc_pcs/$1 [PT,L] > > Any ideas how to get it to work? > > Thank you If you have access to the httpd.conf for your site, i'd recommend changing it there. Rewrites in .htaccess files are slow, and sometimes surprising in what they rewrite (or don't, in your case...). Only bother with .htaccess files if you absolutely have to. And in most cases, you don't. Anything you can do in an .htaccess file, you can do in httpd.conf. Besides putting all your settings in one place (or, really, because of it), things will be faster (only one set of stuff to read in, and that's done at startup) and more secure too (don't have to worry about some bad script showing off the contents of your .htaccess files). That's like 3 tips for the price of one. -- Daniel Davenport New Age Digital http://www.newagedigital.com _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.