Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Error flagged in .htaccess file (3 replies)

$
0
0
This issue relates to an installation using wampserver3.0.4_x64_apache2.4.18_mysql5.7.11_php5.6.19-7.0.4.exe and all of the C++ redist libs, as specified on the information page of the install. It was installed about two hours ago.

The only installation default I changed was to specify Firefox to replace IE.

I created a virtual host successfully after a bit of help -thank you, RiggsFolly

When I use the link to it on the localhost page, Apache logs this error:

[Sat May 14 23:55:27.581008 2016] [core:alert] [pid 3764:tid 884] [client 127.0.0.1:51306] C:/wamp64/www/bobroot/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration


The contents of my .htaccess file are:

---------------------------------
ErrorDocument 404 "404 page not found"


AddType text/x-server-parsed-html .html


Header append X-FRAME-OPTIONS "SAMEORIGIN"
RewriteEngine on
RewriteCond %{THE_REQUEST} \/index.shtml\ HTTP [NC]
RewriteRule (.*)index.shtml$ /$1 [R=301,L]
RewriteCond %{THE_REQUEST} \/index.html\ HTTP [NC]
RewriteRule (.*)index.html$ /$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www.bobnovell.com$
RewriteRule ^(.*)$ [www.bobnovell.com] [R=301]
------------------------------------

Why is this error occurring, the same .htaccess file is in use, successfully, on a hosting company's server.

What configuration changes need to be changed or added to support Header?

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>