Hi,
I have an existing site with its own version of "Pretty URLs" already in place. In the root there is an index.php page and it fetches the correct page from a '/views' directory. A .htaccess is in place to do this:
RewriteEngine On
RewriteBase "/"
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
RewriteRule ^(wp-content|wp-includes|wp-json|admin)($|/) - [L]
RewriteCond "%{REQUEST_URI}" "!=/index.php"
RewriteRule "^(.*)" "/index.php?url=$1&pname=views/$1" [L,PT]
The problem is, all my editable regions appear in the admin panel under index.php and most instantly come up as "Field not found!".
How can I fix this? Can I put some PHP in the header of each view file to specify its path and template name to Couch CMS?
Thank you,
Reece
I have an existing site with its own version of "Pretty URLs" already in place. In the root there is an index.php page and it fetches the correct page from a '/views' directory. A .htaccess is in place to do this:
RewriteEngine On
RewriteBase "/"
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
RewriteRule ^(wp-content|wp-includes|wp-json|admin)($|/) - [L]
RewriteCond "%{REQUEST_URI}" "!=/index.php"
RewriteRule "^(.*)" "/index.php?url=$1&pname=views/$1" [L,PT]
The problem is, all my editable regions appear in the admin panel under index.php and most instantly come up as "Field not found!".
How can I fix this? Can I put some PHP in the header of each view file to specify its path and template name to Couch CMS?
Thank you,
Reece