Hot answers tagged

5

For wamp 2.5 on Windows, use a text editor, e.g. notepad++ to edit c:\wamp\bin\apache\apache2.4.9\conf\httpd.conf Change DocumentRoot "c:/wamp/www" to DocumentRoot "c:/my/new/path" (Note slash direction). This will change the location where files are served from (~Line 230). Change <Directory "c:/wamp/www"> to <Directory "c:/my/new/path"> ...


3

loading that file displays the php source instead With syntax highlighting. The same as if you had called PHP's highlight_file() function on that file. It's just a feature if you need to quickly document some code. Many sites display syntax highlighted code on their blogs etc. PHP has this built-in if you need it. If you don't need it, remove it. ...


1

Let me make your question a little simpler.. :) What ? Send 200 response instead of 304 How ? Just add this configuration in your Apache setup. <filesMatch "\.(xml)$"> FileETag None <ifModule mod_headers.c> Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma ...


1

I think the error is where you have placed these directives in your .htaccess file: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l # New directives inserted... RewriteCond %{REQUEST_URI} [A-Z] RewriteRule . ${lc:%{REQUEST_URI}} [R=301,L] RewriteRule .* index.php [L] RewriteRule ^index.php/(.*)$ ...


1

The RewriteBase directive controls the path prefix (the base URL) that is added back when you have a relative path substitution in the RewriteRule. The following (index.php) is a relative path substitution: RewriteRule ^ index.php [L] If you don't explicitly state the RewriteBase then the per-directory prefix (the filesystem path that lead to this ...



Only top voted, non community-wiki answers of a minimum length are eligible