0

I recently upgraded to Magento 2.4.6. I've always had a folder named "PS" with pdf files in my magento root but now I can't access it. I noticed that this line from RewriteRule . /pub/$0[L]* my root .htaccess plays a part in blocking it? What changes in my .htaccess should I make to make the PS folder and it's pdf files available.

1
  • add your PS folder to pub that would be better solution Commented Nov 29, 2023 at 13:16

2 Answers 2

0
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/PS/
RewriteRule .* /pub/$0 [L]
DirectoryIndex index.php
0

No need to do anything in Pub/,htaccess

you just need to add the new_dir_name under the pub/ And than just add the .htaccess and add allow all permissions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.