Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql-a2c-1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /var/www/html/wp-includes/wp-db.php on line 2024

Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql-a2c-1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /var/www/html/wp-includes/wp-db.php on line 2024
class="post-353346 post type-post status-publish format-standard hentry" id="post-353346">

Custom htaccess rewrites with PT flags

I’m attempting to add a custom RewriteRule in the default htaccess file in Joomla 3, but not having any luck getting it to work.

The end goal is to create a URL with a wildcard subpage, like site.com/features/*, which always loads the base page /features/

In my tests, this rule works properly:

RewriteRule ^features\/?(.*)$ "http://%{HTTP_HOST}/index.php/features" [R=302,L]

However, once I change my flag from R to PT, it gives me a 404:

RewriteRule ^features\/?(.*)$ "http://%{HTTP_HOST}/index.php/features" [PT]

I have tried multiple variations of the rewrite syntax, trying with and without the index.php base, also with RewriteBase and no protocol+host.

In all tests, a 301/302 redirect will work properly, and a passthrough will 404. This tells me it’s matching and firing the rule properly, but it’s not rewriting on the PT request back to the server.

I’m curious if anyone else here has done this before and can point me in the right direction of what to try next.

Thanks,

Leave a Reply

Your email address will not be published. Required fields are marked *