Hello, folks,
I am hoping that someone can help me with creating a new Rewrite Rule, as the rule formats are beyond my capability.
Please let me explain what I already have. The following screenshot shows my current Rewrite Rules, all of which have worked flawlessly for the past year:

The 1st rule just redirects all non-WWW to WWW.
Because of the last 4 rules (which I will get to shortly), the 3 Global rules allow me to not have to specify in the URL the actual filename & extension, and instead I can just enter in the 3 aliases, and those 3 rewrite rules point to the actual filenames & extensions.
The reason for the last 4 rewrite rules, is that this host is running a Photo Gallery script that is written for Apache, and which uses & requires an htaccess file. As Abyss does not use htaccess files, Aprelium was able to convert that script's htaccess file into the last 4 rewrite rules in the screenshot.
Again, all of the rewrite rules have worked flawlessly for nearly a year. Which brings me to what I am hoping someone can help me with, and that it is even possible for me to do.
I have another alias called
/pages , and that alias points to a folder that contains a few .php files (which contain just HTML code with some PHP code, hence the PHP extension).
When I go to domain.com/pages/filename.php , the last 4 (htaccess-equivalent) rewrite rules act, and the Photo Gallery script gives an error that the page cannot be found.
So my question is, is it possible for me to add another rewrite rule, that is run BEFORE the last 4 (htaccess-equivalent) rewrite rules?
I would like to be able to access, for example:
- domain/pages/filename1.php
domain/pages/filename2.php
domain/pages/filename3.php
etc.
Hopefully this is possible, and any help allowing me to create that rule would be greatly appreciated.
Thank you in advance & have yourselves a great day.
Regards & be safe,
John