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

Posted by Rik on 05/27/06 20:24

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

 

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

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