RevCMS sub folders?

olliedean

ollie.cool
Jan 28, 2013
433
107
How can I make sub-folders/directories work? (Sorry about the wording of it, that probably isn't right.)
What I mean is so:
I can use (which would be the actual directory)
instead of using
AND
I could use
instead of using

All help is appreciated.
 

Platinum

Hello!
Sep 2, 2012
295
282
For the first issue, you could just simply put the assets folder in your wwwroot, and as for the second you would need to edit your .htaccess and rewrite it so it doesn’t display .PHP in the URL.
 

olliedean

ollie.cool
Jan 28, 2013
433
107
For the first issue, you could just simply put the assets folder in your wwwroot, and as for the second you would need to edit your .htaccess and rewrite it so it doesn’t display .PHP in the URL.
The rewrite for PHP is already there, but you can't access misc/discord as it says it doesnt exist. I know I can just put that in the root folder and it'll be fine, but are there any alternatives?
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
The rewrite for PHP is already there, but you can't access misc/discord as it says it doesnt exist. I know I can just put that in the root folder and it'll be fine, but are there any alternatives?
What's your rewrite?

As for assets, you can put the folder in the web root, or you can rewrite that too lol
 

harambe

Donator
Dec 3, 2018
154
115
Try using this in your .htaccess

RewriteRule ^misc/discord$ [L,NC]
RewriteRule ^misc/discord/$ [L,NC]

Should go same for everything else.
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
Code:
RewriteEngine on

# This will rewrite anything in app/tpl/skins/Habbo/misc to /misc/whatever
RewriteRule ^misc/(.*)/?$ app/tpl/skins/Habbo/misc/$1

# same as above, but for assets
RewriteRule ^assets/(.*)/?$ app/tpl/skins/Habbo/assets/$1

and you can add more just by changing the values
Code:
RewriteRule ^CHANGEME/(.*)/?$ app/tpl/skins/Habbo/CHANGEME/$1

Or if you want to rewrite everything in skins/Habbo (which I wouldn't suggest doing)
Code:
RewriteRule ^(.*)/(.*)?$ app/tpl/skins/Habbo/$1/$2

If your rewrites are not working, you might have to change AllowOverride None to AllowOverride All in your conf file
 

olliedean

ollie.cool
Jan 28, 2013
433
107
Try using this in your .htaccess

RewriteRule ^misc/discord$ [L,NC]
RewriteRule ^misc/discord/$ [L,NC]

Should go same for everything else.
Code:
RewriteEngine on

# This will rewrite anything in app/tpl/skins/Habbo/misc to /misc/whatever
RewriteRule ^misc/(.*)/?$ app/tpl/skins/Habbo/misc/$1

# same as above, but for assets
RewriteRule ^assets/(.*)/?$ app/tpl/skins/Habbo/assets/$1

and you can add more just by changing the values
Code:
RewriteRule ^CHANGEME/(.*)/?$ app/tpl/skins/Habbo/CHANGEME/$1

Or if you want to rewrite everything in skins/Habbo (which I wouldn't suggest doing)
Code:
RewriteRule ^(.*)/(.*)?$ app/tpl/skins/Habbo/$1/$2

If your rewrites are not working, you might have to change AllowOverride None to AllowOverride All in your conf file
Thank you, I'll check these tommorow.
 

Users who are viewing this thread

Top