I’ve just moved all my sites to php8 and unfortunately this has created a problem (but in PIWIGO gallery) where I can no longer drop .php?. This creates an issue because after years of using the same URLs they no longer work.
What I’m trying to do, (could not find a solution on-line) is change the incoming URL to match what the web site is now having to display.
Here is the URL that I’m now having to use:
thumbnail page
gallery.soft-focus-imagining(.)com/index**.php?**/category/denver-science-museum
and here is what I would like it to use:
gallery.soft-focus-imagining(.)com/index/category/denver-science-museum
and the same thing happens when displaying a photograph.
photopage
gallery.soft-focus-imagining(.)com/picture**.php?**/Denver_Science_Museum-07-09-2019-004/category/denver-science-museum
Here is what I have tried last. This manages to loose index.php? totally, but when the page displayes there is no CSS, just text.
RewriteCond %{THE_REQUEST} \s/index.php?(\S+)\s [NC]
RewriteRule ^ %1? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/?$ index.php?=$1 [R=301,NE,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ /index.php/$1 [L]
If anyone can help, I’d be grateful, oh so grateful! - Nigel.
|Operating system |Ubuntu Linux 20.04.5|
|Webmin version 2.001
|Usermin version 1.860
|Virtualmin version 7.2-1