mwjt42 Posted January 17, 2018 Share Posted January 17, 2018 I have a fresh install of Processwire, and I've set the admin area to 'admin'. However, as I'm using a Cloud9 selfhosted IDE, I run my dev projects using the PHP webserver. I cannot access the admin panel (or any routing urls), as the routing is designed around a .htaccess rewrite I followed this guide https://processwire.com/talk/topic/13445-using-phps-built-in-webserver-with-processwire/ to create a routing file, but with no joy. How can I get a dev processwire site up and running using the PHP server? Link to comment Share on other sites More sharing options...
mwjt42 Posted January 17, 2018 Author Share Posted January 17, 2018 Nevermind.. Turns out C9 wasn't running 'routing.php' but still launching the 'index.php' file. Not sure how to make it run a non-index file? Link to comment Share on other sites More sharing options...
BitPoet Posted January 17, 2018 Share Posted January 17, 2018 How about including router.php (without require_once for index.php) at the top of index.php (perhaps conditionally so it only happens in the dev environment in case you move the files to a production system)? You'll have to remember to add the include, of course, each time you update your dev environment. Link to comment Share on other sites More sharing options...
mwjt42 Posted January 17, 2018 Author Share Posted January 17, 2018 Thanks, I'll give it a go. Although I'm not sure how it would reference itself without constant redirects? 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