Hi Mehdi
You are asked for the password on every post because this file is loaded from the wp-admin folder:
http://canot.ir/wp-admin/admin-ajax.php
I guess you have used htaccess to protect the folder, and then you can add a few more lines to let everyone load this file (making it unprotected/without password).
You could try adding this to .htaccess in wp-admin:
<Files admin-ajax.php>
order allow,deny
allow from all
</Files>
Good luck
Thread Starter
Mehdi
(@mahdinajafi1yahoocom)
Hi Sven D
Thanks for your response.
How can I add the above code to .htaccess I mean where should I add the code?
I haven’t found anything like that.
Let me reply as low tech as possible π
If you can FTP to your servers (or get access via Control Panel) then try to open up for example NOTEPAD (windows program), copy and paste this in:
<Files admin\-ajax\.php>
order allow,deny
allow from all
</Files>
And save as this file name: .htaccess
Then transfer the file to you wp-admin and hopefully it will work (let your visitors read your posts without being asked for a username and password).
If everything goes wrong, just delete the file same file you uploaded.
If you feel unsure: contact your webhosts customer service π
Good luck!
Thread Starter
Mehdi
(@mahdinajafi1yahoocom)
π sorry, I’m not that professional.
I just found the file named .htaccess. It was hidden. The file contains the following code:
# BEGIN WordPress
# END WordPress
<Files 403.shtml>
order allow,deny
allow from all
</Files>
I added your code to the above, but it didn’t work π
This system file ( .htaccess ) is very “delicate” and may act difrently from server to server.
Are you sure that the file you found is located in the wp-admin folder? If yes, then maybe you can try this:
# BEGIN WordPress
# END WordPress
<Files 403.shtml>
order allow,deny
allow from all
</Files>
<Files "admin-ajax.php">
order allow,deny
allow from all
</Files>
Thread Starter
Mehdi
(@mahdinajafi1yahoocom)
I’ve already tried that, it didn’t work.
Try to ask you webhosts customer service π
They might give you a hand
Thread Starter
Mehdi
(@mahdinajafi1yahoocom)
Thank you for your tips, Sven.
Thread Starter
Mehdi
(@mahdinajafi1yahoocom)
Sven, You were almost there. This is the code:
<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any
</Files>
Thanks