Jump to content

Routing with PHP webserver


mwjt42
 Share

Recommended Posts

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

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

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...