Webmastersite.net
Register Log In

Templates Visible

Comments on Templates Visible

rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted Mar 10, 2007 - 12:02 AM:

Is there a way so templates are not exposed?
Example:
www.webmastersite.net/forum...plates/default/wrapper.tpl
www.webmastersite.net/forum...tes/default/memberlist.tpl
www.webmastersite.net/forum...lates/default/register.tpl

Thanks.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Mar 10, 2007 - 3:52 AM:

In the "Other .htaccess content" part of your SEO page, add this rule:

RewriteRule ^templates/([A-Za-z0-9]+)/([A-Za-z0-9]+).tpl?$ index.php
rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted Mar 11, 2007 - 10:10 PM:

That worked great, but custom folder templates still show. What would the variation be? Tried a few, but couldn't get it.


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Mar 12, 2007 - 7:55 AM:

Add
RewriteRule ^templates/([A-Za-z0-9]+)/custom/([A-Za-z0-9]+).tpl?$ index.php
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.