Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Ford Doctor Posted January 4, 2019 Posted January 4, 2019 I will be moving to a new host. I want to install my entire IPS suite into a sub-directory. How is this done?
Mark H Posted January 4, 2019 Posted January 4, 2019 Briefly....... When you transfer the files, put them into the subdirectory of your choice, and edit the conf_global.php file to change the board_url variable to the new location (e.g. http://domain.com/folder-name) then in the ACP check the file storage configuration to make sure the server paths are correct. Once that's done, run the support tool to regenerate the cache. Also see our Guide for transferring to a new server, which has more details:
Ford Doctor Posted January 4, 2019 Author Posted January 4, 2019 Yes, I read the guide and I made a practice move without any issues. I get the moving into the sub directory and editing my paths in the configuration file but my domain, being the main domain for my host points to the root directory. That is what needs the workaround as for most hosts do not let you configure where the domain points to as is possible with all of my sub-domains.
Mark H Posted January 4, 2019 Posted January 4, 2019 Yes, if your domain points to the root of the site, then putting the software in a sub-directory will change the URL to your site. It will change to http://your-domain.com/folder-name/ or whatever that chosen folder-name may be. "community" or "board" or whatever. Unless I've misunderstood what you want to accomplish, there isn't a provision to put the software into a sub-directory of the root, and still keep the root domain's URL.
Ford Doctor Posted January 5, 2019 Author Posted January 5, 2019 New host says use redirect in the .htaccess in the root.
Morgin Posted January 7, 2019 Posted January 7, 2019 On 1/5/2019 at 11:26 AM, Ford Doctor said: New host says use redirect in the .htaccess in the root. I’m a bit confused by what you are wanting to accomplish (not in the philosophical sense, but in the literal sense). What do you want your url for your invision site to be, and where do you want the files?
Ford Doctor Posted January 12, 2019 Author Posted January 12, 2019 The short of it is I have several websites and I want ALL OF THEM in their own sub-directories for simplicity. Call me OCD. With anything substantial like IPS in the root along with other sites in sub directories it can become confusing and make backing up a little more difficult. It is working with the redirect my host provided just fine and my URL is no different than if IPS was in the root. Like any other time you set up your IPS installation, you have to set the URL and the path's correctly. In this case the redirect also takes care of the URL and setting the path keeps it all working. The instructions for this are the top question in their (host's) FAQ's which leads me to think I am not alone on this however we don't know what reason others have for doing this are. 😉
Morgin Posted January 13, 2019 Posted January 13, 2019 18 hours ago, Ford Doctor said: The short of it is I have several websites and I want ALL OF THEM in their own sub-directories for simplicity. Call me OCD. With anything substantial like IPS in the root along with other sites in sub directories it can become confusing and make backing up a little more difficult. It is working with the redirect my host provided just fine and my URL is no different than if IPS was in the root. Like any other time you set up your IPS installation, you have to set the URL and the path's correctly. In this case the redirect also takes care of the URL and setting the path keeps it all working. The instructions for this are the top question in their (host's) FAQ's which leads me to think I am not alone on this however we don't know what reason others have for doing this are. 😉 Ok, but again I’m confused. It would be typical that each domain has its own folder assigned. OCD has nothing to do with it, that’s just a standard set up. When you say: “I have several websites and I want ALL OF THEM in their own sub-directories for simplicity” its actually really confusing because you aren’t specifying if you are running multiple websites off one domain, or you have multiple domains (with your ips install having its own) and the host has them all pointed to the same folder. Like a common set up would be for files to be served like this: /var/www/domain1/ - contains domain1.com site /var/www/domainips/ - contains domainips.com site There’s no practical reason you need to use htaccess if the domain you are using for invision isn’t used for your other websites. If it is (that is, you own one domain, want invision to load when user goes to domain1.com, but want domain1.com/rocketships/ to load an entirely different site), then your host is right you need to use htaccess to specify root request to sub directory redirect rules.
Ford Doctor Posted January 13, 2019 Author Posted January 13, 2019 Yes, you are confused and you are over thinking this. I have easily accomplished my goal and it is working properly.
Morgin Posted January 13, 2019 Posted January 13, 2019 3 hours ago, Ford Doctor said: Yes, you are confused and you are over thinking this. I have easily accomplished my goal and it is working properly. Ok. Just trying to help and you really were not clear at all, but good luck.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.