正規表現に問題があります。「RewriteBase」という単語を含むファイルのすべての行と、その前に可能なスペースを一致させようとしています。サンプル ファイルは次のとおりです。
#RewriteBase /yardley/development
RewriteBase /yardley/
私のパターンとその結果:
@RewriteBase\s*(.*)@ //matches both lines - OK
@RewriteBase\s*(.*)$@ //matches first line only - why?
@^.*RewriteBase\s*(.*)@ //doesn't match any - why? It should accept all characters before "RewriteBase"
私はそれに完全に立ち往生しています。どうもありがとう