Some PDF files get Forbidden Access and other open normally on the same directory subsites
Some PDF files get Forbidden Access and other open normally on the same directory subsites
Some PDF files get Forbidden Access and other open normally on the same directory subsites
You shouldn’t need to add anything to .htaccess. Assuming your subdomain points to the same place on the filesystem as the main domain then you need to configure WP to accept requests to both hostnames (to prevent a canonical redirect – which is what I assume you were experiencing?). In other words, instead of hardcoding … Read more
Change Search url slug for each site in a multisite network
Try something like the following at the top of your root .htaccess file (before the WordPress block): RewriteCond %{QUERY_STRING} ^search=([^&]*) RewriteRule ^cgi-bin/mt/mt-search\.cgi$ /?s=%1 [R=301,L] %1 in the RewriteRule substitution is a backreference to the captured group in the preceding CondPattern (ie. the value of the search URL parameter – “WORDS”). Clear your browser cache before … Read more
htaccess working on local server but not on live server
Try something like the following at the top of your .htaccess file at sample.com: RewriteEngine On RewriteRule ^code/. https://www.someotherdomain.com%{REQUEST_URI} [R,L]
using notepad to enforce secure page. Format is UTF-8. The problem is that Windows Notepad saves UTF-8 files with a Byte Order Mark (BOM) – which it uses to identify the file encoding (other systems, Apache included, do not require this). If you look at the saved file in a hex editor, you will see … Read more
301 redirection editing .htaccess doesn’t work
Redirect all requested url to new url
…this is the .htaccess file inside the directory where wordpress is installed That is certainly incorrect as it’s sending requests back to the root. You can remove the RewriteBase directive and remove the slash prefix on the RewriteRule substitution string, ie /index.php should be index.php. For example: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase … Read more