You are here: Re: Htaccess problem « PHP Programming Language « IT news, forums, messages
Re: Htaccess problem

Posted by frizzle on 05/27/06 21:13

Rik wrote:
> frizzle wrote:
> > # S T A R T H T A C C E S S # # # # # # # # # # # # # # # #
> >
> > RewriteEngine On
> >
> > RewriteBase /testfolder/
> > RewriteRule ^((img|swf|js|css)(/.*)?){1}?$ - [PT]
> ------------------------------------------^
>
> What's the questionmark doing there?
> Or the 'silly' {1} for that matter? (This is always implied, (#[.#]} is only
> needed when match isn't:
> - 1 (which it will assume if nothing is given).
> - 0 or 1 (the ?)
> - 0 or more (*)
> - 1 or more (+)
> I've never use PassThrough, but to me it seems it should be:
> RewriteRule ^(img|swf|js|css)/.*$ - [PT]
>
>
> > RewriteRule ^(.*)$ index\.php?$1 [L]
>
> ---------------------------------^
>
> This dot doesn't need to be escaped
>
> As stated in another post, this isn't PHP, post in an apache ng.
>
> Grtz,
> --
> Rik Wasmus

Thank you both for pointing this out to me!
I reposted the message (slightly modified thanks to Rik) on
alt.apache.configuration
under
http://groups.google.com/group/alt.apache.configuration/browse_thread/thread/0bd6bc52b4feece4/d030661280f74a29#d030661280f74a29

Frizzle.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация