Best collection of code for your .htaccess file [closed]

These are 3 snippet for better performance, regarding Yahoo! rules: Disable Etags: Header unset ETag FileETag None Add expire headers: <FilesMatch “\.(ico|jpg|jpeg|png|gif|js|css|swf)$”> Header set Expires “Tue, 16 Jun 2020 20:00:00 GMT” </FilesMatch> Or ExpiresActive On ExpiresByType text/html “access plus 1 day” ExpiresByType image/gif “access plus 10 years” ExpiresByType image/jpeg “access plus 10 years” ExpiresByType image/png … Read more

Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php

When I try logging in to wp-admin (or even wp-admin/index.php) I simply get redirected to my site’s homepage. (after authenticating successfully – i.e. It DOES accept my login credentials (so its not an account, password or blacklisting issue), but simply wont go to the admin dashboard page after login) (I suspect it may be an … Read more

Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php

When I try logging in to wp-admin (or even wp-admin/index.php) I simply get redirected to my site’s homepage. (after authenticating successfully – i.e. It DOES accept my login credentials (so its not an account, password or blacklisting issue), but simply wont go to the admin dashboard page after login) (I suspect it may be an … Read more

Redirect old php link to wordpress link in .htaccess

I am trying to redirect old page link to new wordpress link using .htaccess, I tried two following redirection steps but none of them works. Both are in same domain like www.example.com/folder/first-index.php?idTop=0 and www.example.com/foldernew/products-list/ I am trying other steps to but no luck. Please anyone correct my code. Thank you.