-
-
Save BFTrick/3706672 to your computer and use it in GitHub Desktop.
# 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] | |
</IfModule> | |
# END WordPress |
hi i have put ur given expires header coding into wordpress .htaccess file(located in public_html) when i put this code and saved. and then put my website url into chrome it has given the following error please help me how to set this ASAP.
“Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.”
This is my main problem now. I mistakenly deleted my .htaccess file (for Mp3 Downloads ) and haven't been able to fix it, even after adding your code, more help please.
@domantasg Your reply helped me solve my problem.
i am not able to resolve .htaccess problem please check sir and let me know what is the actual problem occuring in my Vidyanidhi.org.in
NO! that htaccess is OLD. Use new one: https://wordpress.stackexchange.com/questions/45898/default-htaccess-file-for-wordpress
thanks for this gist! It's super useful if you need to quickly revert .htaccess to default for client's WordPress site. Just copy and paste.
P.S if you cannot see .htaccess file, it's because it's hidden (https://www.hostinger.com/tutorials/create-default-wordpress-htaccess-file)