Apache Server configuration support - Re: mod_rewrite: if browsing to site.com/folder, how do I ignore RewriteRules and retr

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2007 > Re: mod_rewrite: if browsing to site.com/folder, how do I ignore RewriteRules and retr





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: mod_rewrite: if browsing to site.com/folder, how do I ignore RewriteRules and retr
HansH

2007-09-28, 7:22 pm

"johnhutch" <johnhutch@gmail.com> schreef in bericht
news:1190996285.502121.264230@g4g2000hsf.googlegroups.com...
> Currently, my .htaccess looks like this:
> 1 Options +FollowSymLinks
> 2 RewriteEngine on
> 3
> 4 RewriteCond ^/meetings/* [NC]
> 5 RewriteRule .* - [L]
> 6
> 7 RewriteRule ^([A-Za-z_]+)/([A-Za-z_]+)/([A-Za-z_]+)/?$ /
> index2.php?section=$1&subsection=$2&content=$3 [QSA,L]
> 8 RewriteRule ^([A-Za-z_]+)/([A-Za-z_]+)/?$ /index2.php?section=
> $1&content=$2 [QSA,L]
> 9 RewriteRule ^([A-Za-z_]+)/?$ /index2.php?section=$1 [QSA,L]
> 10 RewriteRule ^$ /index.php [QSA,L]
>
> If the user tries to browse to the meetings folder, they are all
> separate sites not to be templated. So they need to browse straight
> there. How can I accomplish this? My current code doesn't seem to work
> as I'd expect.
>

Rules in .htaccess tend to be a bit -rather a character- different, try
4 RewriteCond ^meetings/* [NC]
(that's without the leading slash)

HansH


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com