Jump to content

How to change the default directory


Jhony300

Recommended Posts

  • Moderators

Hello everybody, I'm new here on the forum, this is my first participation.

I wonder if it is possible to change the default directory (lib/skins...) to something else that I can create? Example (myva/skins...).

Thank you.

I'm not sure why you would want to do that. You would have to change a few things to make it work. I wouldn't really do that. If you wanted to change your skin, you can add new skin in the skin folder and go to the admin panel, site settings and change the skin and save the settings.

Cheers!

Link to comment
Share on other sites

There was a thread about a security issue with phpvms, I can't find it. Here is how you change your .hta file.

# prevent viewing of a specific file
RewriteEngine on
RewriteCond %{HTTP_HOST} ^YOURURL.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.YOURURL.com$
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh|tpl)$">
Order Allow,Deny
Deny from all
</FilesMatch>
#custom error docs if you have them
#ErrorDocument 404 /404.html
#ErrorDocument 403 /403.html
#disable hotlinking
RewriteEngine on
#disable some known attacks from agents also hotlinking
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteRule ^(.*)$ – [F,L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURURL.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?forum.phpvms.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?va-list.com/.*$ [NC]
RewriteRule \.(gif|png|jpg|js|css)$ - [F,NC]
#disable display of dir structure
Options -Indexes

Change the YOURURL to the url of your VA.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...