Conversation
supportIn this site, I’m using Elementor editor. It save css files in “/wp-content/uploads/elementor/css/” folder as this example: /wp-content/uploads/elementor/css/post-955.css When I change the “.htaccess” (as install instructions) file the css link is blocked. That is ok, as I tested with some media files showing to allow or deni. But I insert that and other URLs on the URI access panel (for all users) but I can’t access does files, and the layout is broken. Can you help me? The page I need help with: [ log in to see the link]
After more tests, I see the problem is with CSS files or txt files. Does are not rendered correctly on the upload folder (they are not allowed by WP). But I instal “File Upload Types by WPForms” plugins and now If I open the CSS file on the browser, I can see the CSS code correctly. But anyway, the layout still broke, css are not loaded on pages.
.htaccess file have this: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} wp-content/uploads/(.*)$ RewriteRule . /index.php?aam-media=1 [L] How can I add a line to make exception for all files on the folder wp-content/uploads/elementor/css/ ?
I found the solution my self. I add this line to htaccess: RewriteCond %{REQUEST_URI} !wp-content/uploads/elementor/css/(.*)$ Like this. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} !wp-content/uploads/elementor/css/(.*)$ RewriteCond %{REQUEST_URI} wp-content/uploads/(.*)$ RewriteRule . /index.php?aam-media=1 [L] I hope this helps someone with the same problem, or the author to debug this issue.
After more tests, I see the problem is with CSS files or txt files. Does are not rendered correctly on the upload folder (they are not allowed by WP). But I instal “File Upload Types by WPForms” plugins and now If I open the CSS file on the browser, I can see the CSS code correctly. But anyway, the layout still broke, css are not loaded on pages.
.htaccess file have this: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} wp-content/uploads/(.*)$ RewriteRule . /index.php?aam-media=1 [L] How can I add a line to make exception for all files on the folder wp-content/uploads/elementor/css/ ?
I found the solution my self. I add this line to htaccess: RewriteCond %{REQUEST_URI} !wp-content/uploads/elementor/css/(.*)$ Like this. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} !wp-content/uploads/elementor/css/(.*)$ RewriteCond %{REQUEST_URI} wp-content/uploads/(.*)$ RewriteRule . /index.php?aam-media=1 [L] I hope this helps someone with the same problem, or the author to debug this issue.