eydun Posted February 16, 2019 Share Posted February 16, 2019 (edited) Hello. I just found ProcessWire and I am very impressed. It fees like Christmas Eve digging into the system. I would like to use it right away in some of my old websites that are built by custom-made code. Is it possible to rename the main "index.php" to some other name, e.g. "processwire.php", and modify the .htaccess accordingly? I ask because currently the old system is occupying the filename index.php (when the whole website has been converted to Processwire, then I will delete the old system). Edited February 16, 2019 by eydun Link to comment Share on other sites More sharing options...
teppo Posted February 16, 2019 Share Posted February 16, 2019 Well, it might be technically possible, but there's no core support for it, and I wouldn't recommend it ? In this case you would probably have to modify index.php, .htaccess, and at least some other core files: wire/core/ProcessWire.php, wire/modules/Process/ProcessLogin/ProcessLogin.module, and wire/modules/Process/ProcessPageView.module. Modifying core files is never a good idea, as it makes updating ProcessWire difficult (usually you can just replace certain core files and that's it), and there's also no guarantee that some third party module etc. isn't expecting the core to remain as-is. So, long story short: if you really have to, you can of course modify it, but there's no guarantee that things will work as expected afterwards. If possible, I'd recommend developing the ProcessWire site elsewhere (subdirectory, or another domain, or locally) and then replacing the old site in one go. ? 2 Link to comment Share on other sites More sharing options...
Gideon So Posted February 16, 2019 Share Posted February 16, 2019 A quick thought: make a subdirectory within the old site and develop the new site there. Delete all the old stuff (remember to leave the new site directory). Then move everything in the new site directory to the main directory. Done. Gideon Link to comment Share on other sites More sharing options...
Autofahrn Posted February 16, 2019 Share Posted February 16, 2019 Not sure if renaming index.php would be of any use. If you point the .htaccess to use the different index.php, you're old site will be gone anyway. Does your hoster support creation of subdomains (something like new.mysite.com)? Then I'd place the new setup into a subdirectory and point that subdomain to that directory. When you're done, you simply have to point your regular domain to that subdirectory (no need to move any file afterwards). Link to comment Share on other sites More sharing options...
eydun Posted February 16, 2019 Author Share Posted February 16, 2019 Thank you all for your helpful comments. I think I will go with the solution building the new site in a sub-directory. The old site is quite large (100+ pages), and therefore I plan to merge some content from the new processwire-subdirectory via the fantastic API that processwire provides into the old site, during the conversion-process. Quite messy, I know. But with such a complex-reducing system as processwire, I think it is doable. Thanks again! 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