Tag Info

Hot answers tagged

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. ...


2

From What are the most commonly used and basic Apache htaccess redirects? contributed by bybe: Catch all and redirect non-www to www You should opt to use mod_write for redirecting all requests for non www versions of your site because the $1 varible will catch page names, so example.com/page1/ will automaticly redirect to www.example.com/page1/. ...


1

For 20 links, you are not going to notice a speed difference with any of those methods. None of them are going to add significant overhead. There is significant overhead added by PHP and WordPress to run your site. The redirects are not going to impact performance at all. For a very large quantity of redirects (thousands), individual rewrite rules ...


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

You could do this in your .htaccess file: RewriteEngine on # if https and starts with www, go to http version RewriteCond %{SERVER_PORT} ^80$ RewriteCond %{HTTP_HOST} ^www [NC] RewriteRule ^(.*)$ http://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] # if not https and it doesnt start with www, go to https version RewriteCond %{SERVER_PORT} !^80$ RewriteCond ...


1

That question made me mix quite some things. This one works as expected according to what I tested, with | operator, taking advantage of the possibility in Apache 2.4 to use the $ sign as line ending: <DirectoryMatch "/opt/lampp/htdocs/[^/]*/public/(uploads(/[^/]*)?|(wp/wp-content/uploads(/[^/]*)?))$"> Require all granted </DirectoryMatch> ...


1

I solved my problem, here is the solution. I have two: First: Updating DNS manager by Zpanel, editing the main domain and in CNAME tab just add the new subdomain manually. It's normal doesn't show the subdomain on DNS management, just create a new CNAME entry, save and in SSH write: php /etc/zpanel/panel/bin/daemon.php This command will make your daemon ...



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