3
All right? Please, I need help...
Currently, my site presents links as follows: https://site.com/pagina/noticia/2019/ciencia-e-saude/exibe.php?link=página-do-leitor-é-maneira
In the "science-and-health" folder, I have a file exibe.php
which serves to display the content of a given link.
Look at the index that "pulls this file":
<a class="post-img" href="exibe.php?link=<?php echo $ciencia_e_saude['link'];?>"
I wish I could make a friendly URL that "hides" the "displays.php" of the page...
Actually, this is my ".htacess":
<files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all
</files>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1\.php
RewriteRule ^([a-z,0-9,A-Z,_-]+)$ /exibe?link=
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
You can help me?