.htaccess is not working
Hi all, I'm having trouble with .htaccess file.
I'm trying to rewrite domain to point to AWS cloudfront. This hasn't worked so I decided to try a rewrite I know has worked in the past on different web servers and this didn't work either.
I've included both rewrites below, I put these into the .htaccess individually.
Any idea why this wouldn't work?
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^wp-content/uploads/(.*)$ http://XXXXXXXXXXXX.cloudfront.net/wp-content/uploads/$1 [r=301,nc]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com.au [NC]
RewriteRule ^(.*)$ http://www.domain.com.au/$1 [L,R=301]
-
Hello, Could you verify the full path to this .htaccess file (replacing the account username with an example), and also verify what's configured for the "Optimize .htaccess (AllowOverride)" option in "WHM >> Apache Configuration >> Global Configuration"? Thank you. 0 -
I appreciate you getting back to me. I've already resolved this with support. I saw this setting posted in other thread but could never find it in my WHM. Any idea why? We are using version cPanel & WHM 64.0 (build 36) 0 -
Hello, I'm happy to see you were able to solve the issue. The referenced option is available in cPanel version 66 (tentatively scheduled for publication to the Release build tier this week). Thanks! 0
Please sign in to leave a comment.
Comments
3 comments