mercredi 17 juin 2015

Removing page extension with .htaccess bugs Facebook Open Graph

What's up guys?!

I researched for removing page extensions (Ex: /page.php to just /page) and I found this article: http://ift.tt/1nCcJSs

So, I inputed this code into my .htaccess file. It really worked, but when I paste/type my index link at Facebook status with no trailing slash at the end, the Open Graph kinda bugs. There's no thumbnail, no right title and description.

Check it: http://ift.tt/1GPPUZ1

Would the solution be remove the code from .htaccess and create subfolders with index files to have the pages without extension?

Thank y'all! :-)

EDITED

That's the code of my .htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]




Aucun commentaire:

Enregistrer un commentaire