Tag Info

New answers tagged

0

You are redirecting the entire domain hence breaking the site, because whole website is getting redirected to a part causing a broken website. So instead of using .htaccess just create an index.html file in your root and do a simple Meta Refresh Or Use this more detailed explanation to do the same using php


0

It should work with this lines which simply remove the .php from files that end with .php: RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L]


1

You need to flush rewrite rules after adding or modifying rewrite rules in WordPress. flush_rewrite_rules() can be used to flush rules. For more info check these links : https://codex.wordpress.org/Rewrite_API/add_rewrite_rule https://codex.wordpress.org/Function_Reference/flush_rewrite_rules


0

You have to modify either before # BEGIN WordPress or after # END WordPress. This part is modified by WP, once you change your permanlink


1

According to the official WordPress docs, when you save your Permalinks it updates your .htaccess file ... This isn't correct. When you switch from default-- ?= permalinks which are nothing but pure PHP URL parameter passing-- to anything else then WordPress will create a .htaccess file if it can, or tell you to create one. Once that file is created ...


0

if the .htaccess file is writeable by the server it will automatically update the file. WordPress will try and do it, if it can't it will tell you to manually update the file.


0

Your .htaccess is not readable (like the error noticed). So make your .htaccess readable using permission 644. Source Now check again, perhaps now your stylesheet will be loaded? If not, check if the stylesheet file is readable. May this not be the cause, check the owner of the files.


0

Strip the preceeding forward slashes from your rules: Example (incorrect) RewriteRule ^/css/(.*) /wp-content/themes/themename/css/$1 [QSA,L] Example (correct) RewriteRule ^css/(.*) wp-content/themes/themename/css/$1 [QSA,L] All rules (correct) # BEGIN WordPress <IfModule mod_rewrite.c> RewriteRule ^/index\.php$ - [L] RewriteRule ^css/(.*) ...



Top 50 recent answers are included