pwired Posted February 21, 2014 Share Posted February 21, 2014 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 upwith other files I keep in the root.I then put a .htaccess file in /server/rootRewriteEngine OnRewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$RewriteRule ^(/)?$ folder [L]But is this good practise ? Link to comment Share on other sites More sharing options...
Martijn Geerts Posted February 21, 2014 Share Posted February 21, 2014 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 More sharing options...
pwired Posted February 21, 2014 Author Share Posted February 21, 2014 This way, no need for RewriteEngine stuff.... No .htaccess to make that work ? Link to comment Share on other sites More sharing options...
Martijn Geerts Posted February 21, 2014 Share Posted February 21, 2014 Out of the box. No changes. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now