Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Redirect "tp=1", "template=" and "tmpl=" Variables
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Redirect "tp=1", "template=" and "tmpl=" Variables

Redirect "tp=1", "template=" and "tmpl=" Variables 14 years, 1 month ago #15290

Hello guys,

I want to make my Joomla homepage a little bit more secure
and found some .htaccess - Rewrite rules.
With these rules I normaly should "bypass" the view of the module positions,
and the usage of another template.


Rewrite rules for Joomla:
RewriteCond %{QUERY_STRING} (&|%3F){1,1}tp= [OR]
RewriteCond %{QUERY_STRING} (&|%3F){1,1}template= [OR]
RewriteCond %{QUERY_STRING} (&|%3F){1,1}tmpl= [NC]
RewriteRule ^(.*)$ - [R=404,L]


or

RewriteCond %{QUERY_STRING} (&|^){1,1}tp= [OR]
RewriteCond %{QUERY_STRING} (&|^){1,1}template= [OR]
RewriteCond %{QUERY_STRING} (&|^){1,1}tmpl= [NC]
RewriteRule ^(.*)$ - [R=404,L]



But both cases did not worked for me.



Is it possible to do the same thing with ARTIO JoomSEF?

(Sorry for my bad english. :-) )

Re:Redirect "tp=1", "template=" and "tmpl=" Variables 14 years, 1 month ago #15326

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

Unfortunately, this is not possible with JoomSEF. You could maybe use the Variables Filtering, where you can set only the variables that are allowed in the URL, but it works only for extensions, so I'm not sure if it will work for the homepage. You can find it in extension's parameters using the Manage Extensions page.

Best regards,
ARTIO Support Team
ARTIO Support Team
  • Page:
  • 1
Přihlášení uživatele Prázdný