Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PT flag does not seem to work for RewriteRule entries #34

Open
TyIsI opened this issue Sep 12, 2016 · 1 comment
Open

PT flag does not seem to work for RewriteRule entries #34

TyIsI opened this issue Sep 12, 2016 · 1 comment
Labels

Comments

@TyIsI
Copy link

TyIsI commented Sep 12, 2016

The following example does not follow through to the second rewrite rule

RewriteEngine On
RewriteBase /

# Drupal node to wordpress url mapping
RewriteCond %{QUERY_STRING} ^q=content\/(.*)$
RewriteRule . /drupal/%1? [PT]

RewriteRule drupal/example-article /2016/09/12/example-article/ [R=permanent,L]

I can confirm that this does work in a live environment.

Cheers,
Ty

@shibinca
Copy link

shibinca commented Oct 6, 2016

I guess you are right, RewriteRule always showing as "not met" while it actually works. (Not just for PT flags)

My example:

RewriteCond %{QUERY_STRING} .redirectURL. [NC]
RewriteCond %{QUERY_STRING} !.redirectURL=(/|%2f). [NC]
RewriteRule ^/logoff.html(.*) - [F]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants