Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

How to redirect pages with php extension in GRAV

Started by Eric Dela Cruz 9 years ago · 25 replies · 4578 views
9 years ago

I honestly don't know, it works fine on my setup...
Did you clean the cache (grav and browser)? Maybe this'll help, otherwise you'll have to wait for one of the main developers...

9 years ago

I'm already setting up a plain vanilla PHP server without Docker.
Maybe that will solve it.

Anyway, thanks for your patience and help.
I got at least one part of my problem solved.

Cheers.

9 years ago

Always happy to help! I'm only sorry that I wasn't able to help with all the issues...

9 years ago

Got it working now.
It was the php and or grav implementation I used with a Docker container.

I installed a fresh php and grav installation without using a docker container and now url's ending in .php or any extension are redirected to the home page by setting the route in the error plugin.

👍 1
9 years ago

Great! I'm really happy to hear this!

9 years ago

Another way would be to extend the .htaccess file to redirect every .php file to achieve this.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 60 16 hours ago
Support · by Anna, 3 days ago
2 66 19 hours ago
Support · by Justin Young, 19 hours ago
1 33 19 hours ago
Support · by Duc , 1 week ago
2 69 6 days ago
Support · by Colin Hume, 1 week ago
2 61 6 days ago