What’s wrong with this simple .htaccess file
-
RewriteEngine on
RewriteRule ^ – [E=rewrite:on]RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^devel/test/static/life/Non-Smoking_Campus.pdf$ /devel/test/static/wp-content/uploads/Non-Smoking_Campus.pdf [R=301,L]
RewriteCond %{ENV:rewrite} !on
RewriteRule ^ – [L,R=404]I keep getting a 404 error.
It’s on SiteGround and I’ve flushed the cache repeatedly.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘What’s wrong with this simple .htaccess file’ is closed to new replies.