Trying and failing to get this php include to work

ah ! thanks, that’ll come in handy next time I use it
i do find php very difficult but to be honest i havent spent enough time reading the manual :stuck_out_tongue:

remove the extension when viewing from a web browser (.htaccess)

RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.