04-19-2019, 12:02 PM
I will say that this is the closest I can get quickly to it working...
RewriteEngine on
#unless directory, remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /4408/$1 [R=301,L]
#redirect external .php requests to extensionless url
RewriteCond %{THE_REQUEST} ^(.*)\.php([#?][^\ ]*)?\ HTTP/
RewriteRule ^(.*)\.php$ /4408/$1 [R=301,L]
#resolve .php file for extensionless php urls
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ /4408/$1.php [L]
But from there you would need to figure out how to make php functions actually work. If you find out, let me know!
Btw, the 4408 is the folder that my project was in.
Normally you can move userspice from folder to folder without breaking anything and this would take that feature away.
RewriteEngine on
#unless directory, remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /4408/$1 [R=301,L]
#redirect external .php requests to extensionless url
RewriteCond %{THE_REQUEST} ^(.*)\.php([#?][^\ ]*)?\ HTTP/
RewriteRule ^(.*)\.php$ /4408/$1 [R=301,L]
#resolve .php file for extensionless php urls
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ /4408/$1.php [L]
But from there you would need to figure out how to make php functions actually work. If you find out, let me know!
Btw, the 4408 is the folder that my project was in.
Normally you can move userspice from folder to folder without breaking anything and this would take that feature away.