- Posts: 148
- Thank you received: 3
Comments in Spanish in htaccess
- azurelinksc
- Topic Author
- Offline
- Premium Member
-
Less
More
8 months 1 week ago - 8 months 1 week ago #10630
by azurelinksc
Comments in Spanish in htaccess was created by azurelinksc
Hola Jose,
I noticed that the admin directory protection code has changed in the latest version of SCP. My admin URL keyword doesn't work for some reason. There is the capital letter Q in front of the keyword phrase. And the comments toward the end of the file are in Spanish, too. Is that intentional?
Here is the new code:
# 1) Clave en query (?SECRETO) -> HTTP
RewriteCond %{REQUEST_URI} ^/administrator/?$ [NC]
RewriteCond %{QUERY_STRING} (?:^|&)\Qmy_keyphrase\E(?:&|$)
RewriteCond %{HTTP_HOST} ^(.+)$
RewriteCond %{HTTPS} !=on
RewriteRule ^ - [E=ALLOW_ADMIN:1,CO=scp_admin:1:%1:900:/:httponly,L]
Here is the old code:
## Begin Securitycheck Pro Hide Backend Url
RewriteCond %{HTTP_REFERER} ! mysite.com/administrator/
RewriteCond %{QUERY_STRING} !my_keyphase$
RewriteCond %{QUERY_STRING} !com_securitycheckprocontrolcenter [NC]
RewriteRule ^.*administrator/? / [R,L]
## End Securitycheck Pro Hide Backend Url
I noticed that the admin directory protection code has changed in the latest version of SCP. My admin URL keyword doesn't work for some reason. There is the capital letter Q in front of the keyword phrase. And the comments toward the end of the file are in Spanish, too. Is that intentional?
Here is the new code:
# 1) Clave en query (?SECRETO) -> HTTP
RewriteCond %{REQUEST_URI} ^/administrator/?$ [NC]
RewriteCond %{QUERY_STRING} (?:^|&)\Qmy_keyphrase\E(?:&|$)
RewriteCond %{HTTP_HOST} ^(.+)$
RewriteCond %{HTTPS} !=on
RewriteRule ^ - [E=ALLOW_ADMIN:1,CO=scp_admin:1:%1:900:/:httponly,L]
Here is the old code:
## Begin Securitycheck Pro Hide Backend Url
RewriteCond %{HTTP_REFERER} ! mysite.com/administrator/
RewriteCond %{QUERY_STRING} !my_keyphase$
RewriteCond %{QUERY_STRING} !com_securitycheckprocontrolcenter [NC]
RewriteRule ^.*administrator/? / [R,L]
## End Securitycheck Pro Hide Backend Url
Last edit: 8 months 1 week ago by azurelinksc.
Please Log in or Create an account to join the conversation.
- Jose
-
- Offline
- Administrator
-
Less
More
- Posts: 5528
- Thank you received: 404
8 months 1 week ago #10631
by Jose
Replied by Jose on topic Comments in Spanish in htaccess
Hi Bruce,
The \Q in:
\Qmy_keyphrase\E
comes from the PCRE (Perl Compatible Regular Expressions) engine used by Apache mod_rewrite. So:
\Qmy_keyphrase\E
means:
Treat my_keyphrase as exact literal text, even if it contains regex special characters.
The comments in Spanish are intentional.
I would need ftp access to the site; can you send me credentials using the Secure Credentials Submission link?
Regards,
Jose
The \Q in:
\Qmy_keyphrase\E
comes from the PCRE (Perl Compatible Regular Expressions) engine used by Apache mod_rewrite. So:
\Qmy_keyphrase\E
means:
Treat my_keyphrase as exact literal text, even if it contains regex special characters.
The comments in Spanish are intentional.
I would need ftp access to the site; can you send me credentials using the Secure Credentials Submission link?
Regards,
Jose
Please Log in or Create an account to join the conversation.
- azurelinksc
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 3
8 months 1 week ago #10632
by azurelinksc
Replied by azurelinksc on topic Comments in Spanish in htaccess
Does it mean I don’t need to insert a question mark before the key phrase?
Please Log in or Create an account to join the conversation.
- Jose
-
- Offline
- Administrator
-
Less
More
- Posts: 5528
- Thank you received: 404
8 months 1 week ago #10633
by Jose
Replied by Jose on topic Comments in Spanish in htaccess
No, you have to use the question mark, as you did in previous versions. That's exactly the same; what it changes is the way to grant you access. Now the code sets a cookie for that.
Regards,
Jose
Regards,
Jose
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds