I'm trying to rewrite the URL's contained looks like:
https://mywebsite/FOF/news/page/page1.php
I think it's not very aesthetic as url and I would like it to look more like this:
https://mywebsite/customPage
This request is very specific for url https://mywebsite/FOF/news/page/page1.php
My code works, the urls of the https://mywebsite/FOF directory are rewrite, but on the other hand the main url of my site and the urls of the other files are no longer accessible, I do not understand where my error comes from, if someone can help me
Options +FollowSymlinks
RewriteBase /
RewriteEngine on
RewriteRule ^page1$ page1.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+FOF/news/page/([^\s]+) [NC]
RewriteRule ^%1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (?!^FOF/news/page/)^(.*)$ /FOF/news/page/$1 [L?NC]