Article 51Y3G hiding file extension with htacces gives Internal Server Error?

hiding file extension with htacces gives Internal Server Error?

by
jag1
from LinuxQuestions.org on (#51Y3G)
Hello,

I get
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
on every single image, js file and css file. How can i fix this issue?

Options -MultiViews
RewriteEngine On

# To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R=301,NE,L]

RewriteRule ^knowledge-center/(\d+)(?:/.*)?$ knowledge-center-desc.php?id=$1 [QSA,L,NC]

# To internally forward /dir/foo to /dir/foo.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]

ServerSignature Off

DirectoryIndex schedule.phplatest?d=yIl2AUoC8zA latest?i=rPt7ElLGhrM:gxCV8bQZi5w:F7zBnMy latest?i=rPt7ElLGhrM:gxCV8bQZi5w:V_sGLiP latest?d=qj6IDK7rITs latest?i=rPt7ElLGhrM:gxCV8bQZi5w:gIN9vFwrPt7ElLGhrM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments