Specific RewriteCond makes problems in validating

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
apache, php
Domain
tooling

Research direction

Start by reproducing the reported RewriteCond validation result from the issue against Apache 2.2 and 2.4 behavior. Trace the validator entry point that handles this condition and compare its result with Apache; done means this valid condition is no longer reported as a false positive.

Written by the indexing model from the issue text.

Description

Hi, the following line throws a false-positive:

RewriteCond %{HTTP_HOST} ^(www\.u|u-|www\.u-|you|www\.you|you-|www\.you-|uni|www\.uni)book\.at$ [NC]
RewriteRule ^(.*)$ https://mywebsite.com/$1 [R=301,L]

In real this line doesn't fail in Apache 2.2 and 2.4

Dominant language
PHP
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.