Hello, first I had Http Error 401, searched your forum and found solution. Now I realize none of my old image links are working. It is not redirecting to images/old. Here is my .htaccess
I have tried Rewritebase with the # before and removed the #, no difference. Admin page works, so is the rewrite for images/old missing something?
Example image link:
http://yunoimg.com/images/old/sample.jpg - works
http://yunoimg.com/images/sample.jpg - does not work (websites are linking to these)
Code:
ServerSignature Off
Options -Indexes -MultiViews
Options +FollowSymLinks
RewriteEngine On
# If you have problems with the rewrite rules, remove the "#" from the following RewriteBase line
# You will also have to change the path to reflect the path to your Chevereto installation
RewriteBase /
RewriteRule ^api$ api.php [L]
RewriteRule ^admin/(.*) admin/index.php [L]
RewriteRule ^images/(\w*\.)(jpg|png|gif)$ images/old/$1$2 [L] #legacy images
RewriteRule ^images/thumbs/(\w*\.)(jpg|png|gif)$ images/old/$1th.$2 [L] #legacy thumbs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
ErrorDocument 400 default
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
# password protect single file
<IfModule mod_auth.c>
<Files "index.php">
AuthName "Please Log In - (IP Logged)"
AuthUserFile "/home/yunoimg/.htpasswd"
AuthType Basic
require valid-user
</Files>
</IfModule>
#Satisfy Any
#Allow from all
I have tried Rewritebase with the # before and removed the #, no difference. Admin page works, so is the rewrite for images/old missing something?
Example image link:
http://yunoimg.com/images/old/sample.jpg - works
http://yunoimg.com/images/sample.jpg - does not work (websites are linking to these)