Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Running a file outside Grav

Started by Muut Archive 12 years ago · 1 replies · 448 views
12 years ago

I need to run a straight html page outside of Grav that is utilised by a form sending php script that is running in the webroot next to Grav... problem is I can't get the form to find my html page, I assume either because my htaccess is blocking it or Grav is stopping it.

Can I run just a regular html file in the root next to Grav?

So my structure looks like this:

TXT
vendor
user
system
logs
images
cache
bin
assets
.htaccess
.gitignore
message
message/submit-error.html
formsend.php

The formsend.php file works, its trying to process my form but it can't find my /message/ dir and the /message/submit-error.html file that I have shown above.

I'd be happy to have the /message/submit-error.html file under users/pages/message/ except that it needs to be able to be processed by the php form so it can add errors etc to the page if there are any, and again, I can't get it to find the file - I assume because its processed by Grav.

How can I get around this?

12 years ago

That should work. In fact I just tested it and it worked fine. Just test by pointing your browser directly to the page:

TXT
http://yoursite.com/message/submit-error.html

If that works, then the issue is you need to ensure the correct URL your page is trying reach.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago