Jump to content

What is good practise ?


pwired
 Share

Recommended Posts

What is good practise for choosing the install location on the server ?
Do you guys install processwire directly in /server/root/
or do you install in a subfolder /server/root/folder/ ?

I usually install processwire in /server/root/folder/
so the processwire files and folders don't mix up
with other files I keep in the root.

I then put a .htaccess file in /server/root

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(/)?$ folder [L]

But is this good practise ?
 

Link to comment
Share on other sites

I only install Processwire in a sub directory when there's an other site already running in that install.

Say: MODX site is running in the root. And I want to make a survey or what so ever with processwire. I install processwire in www.your-domain.org/servey/

So ./ will access MODX and ./survey/ access PW.

If the site is only ProcessWire, I 'always' install it in the root. 

This way, no need for RewriteEngine stuff....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...