# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Header set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Content-Disposition, Accept" </IfModule> # END WordPress
But with this one (katorhealthline.co.) nothing seems to work.
Some help will be highly appreciated.
]]>help me to solve this issue
]]>only thing commenting on .htacess
###BEGIN Swift Performance Lite###
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{HTTP:Cookie} !^.*(wordpress_logged_in).*$
RewriteCond %{REQUEST_URI} !^/(TOGGLED)/swift-performance/([^/]*)/assetproxy
RewriteCond /(TOGGLED)/swift-performance/%{HTTP_HOST}%{REQUEST_URI}/desktop/unauthenticated/index.html -f
RewriteRule (.*) (TOGGLED)/swift-performance/%{HTTP_HOST}%{REQUEST_URI}/desktop/unauthenticated/index.html [L]
</IfModule>
# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------
# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
# mod_headers, y u no match by Content-Type?!
<FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS
</FilesMatch>
</IfModule>
</IfModule>
# ----------------------------------------------------------------------
# Webfont access
# ----------------------------------------------------------------------
# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like "subdomain.example.com".
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
###END Swift Performance Lite###
Then I wanted to know how to solve this “Leverage Browser Caching”, because in GTmetrix you are warning me
]]>After updating my htacess file i got these error in my WordPress dash board.
“NOTICE: Database login cookie did not match your login cookie. If the login cookie was recently changed in the settings, please log out and back in.”
All the htacess file created by litespeed cache plugin is not there,how to retrieve that?
Do I need to uninstall the cache plugin and reinstall it?
Looking forward to your reply.
]]>Lets say I have mydomain.com.au and then I’ve made a copy as mydomain.com.au/staging/. When you view mydomain.com.au/staging/ and admin pages it works. But if you view mydomain.com.au/staging/shop it shows the live site with a 404 (as /staging/shop does not exist on the live site).
If I view /staging/contact it auto changes to just /contact (the live contact page). It seems the htaccess on the root live site is overriding the htaccess in the staging folder.
How do I get wordpress to respect a htaccess in a staging folder?
]]>we gather the following issues:
– woocommerce_rest_cannot_create
– Product Request Error : woocommerce_rest_cannot_create:Sorry, you are not allowed to create resources.
The guys from the hosting changed the htaccess but didn’t work. Check the following info:
“Assuming from the error that you are receiving, it is possible that the issue is caused by missing authorization header but I cannot confirm that because I am unable to access the Shopmaster platform and test the error on my end. What I have done is that I added the following code to your .htaccess file:
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* – [e=HTTP_AUTHORIZATION:%1]
”
I brought them my credentials from shopmaster and hours later after trying different things they told me that I could get answers with Woocommerce support.
They told me that the last log of the 401 error was this:
[25/Aug/2020:12:59:08 +0000] “GET /wp-json/wc/v2/system_status?consumer_key=ck_3441468deeb7a093d1d98e*************&consumer_secret=cs_872797bd3395087f3bb*************** HTTP/1.1” 401 118 “-” “Apache-HttpClient/4.5.1 (Java/1.8.0_261)” | TLSv1.2 | 1.954 1.970 1.970 MISS W NC:000000 UP:0
I hide some information like the keys or my page because I don’t know if I’m bringing important or private information here.
I appreciate your help.
]]>I’ve tried modifying the htacess but to no avail. The permalinks worked using plain permalinks but they’re not appropriate for the site. I’m unsure if now the issue is with that or with the server configuration and if I need to get in contact with the hosts.
]]>The error is showing up as x-robots noindex, nofollow, noarchive.
I read that it may be in the header.php but I dont seem to have access to this in WordPress.
Any suggestions?
]]>