Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hiding /theme Folder in Source
#8
(2013-04-03, 22:54:16)shawn_a Wrote: Its not really a php or function issue. You have to change it manually or via output buffering like i said.

I think there's several problems to solve in order to achieve this:

1. Where to put the code? I asked a similar question here and a brilliant answer was to make a static plugin that you control. There's no update to the plugin, since it's yours and you can put what ever custom code in it.

2. Like shawn_A mentioned, develop PHP code to rewrite any references to files like /theme/some_theme/css/style.css to /css/style.css.

3. Craft .htaccess to rewrite /css/style.css back to /theme/some_theme/css/style.css.

That way, /theme/some_theme/css/style.css never appears in the HTML source code.

Problem 1 & 3 seems very easy to do. Problem 2 seems a bit more difficult.

shawn_A, you wouldn't, by any chance, want to take a crack at problem 2, would you?
Reply


Messages In This Thread
Hiding /theme Folder in Source - by meepmeep - 2013-04-03, 06:07:46
RE: Hiding /theme Folder in Source - by shawn_a - 2013-04-03, 06:34:37
RE: Hiding /theme Folder in Source - by meepmeep - 2013-04-03, 10:18:11
RE: Hiding /theme Folder in Source - by shawn_a - 2013-04-03, 10:30:49
RE: Hiding /theme Folder in Source - by meepmeep - 2013-04-03, 14:56:51
RE: Hiding /theme Folder in Source - by yojoe - 2013-04-03, 21:10:27
RE: Hiding /theme Folder in Source - by shawn_a - 2013-04-03, 22:54:16
RE: Hiding /theme Folder in Source - by meepmeep - 2013-04-04, 03:28:30
RE: Hiding /theme Folder in Source - by shawn_a - 2013-04-04, 03:33:47
RE: Hiding /theme Folder in Source - by shawn_a - 2013-04-04, 06:06:42
RE: Hiding /theme Folder in Source - by meepmeep - 2013-04-04, 14:08:22



Users browsing this thread: 2 Guest(s)