#2538 edit .htaccess home
Closed: Invalid None Opened 6 years ago by derekbarnes361.

I'd like to have .htaccess look in a couple places for an image before throwing an "image missing" image if it can't find it in either place. Specifically...

if a request comes in for /images//*.png look there first
if that doesn't exist, look for /images/
/old/.png
if neither exists, use /images/
*/missing.png

I found the following code, but don’t understand enough about it to be able to rewrite it to suit the above needs.

# If requested resource exists as a file or directory, skip
next two rules
RewriteCond %{DOCUMENT_ROOT}/$1 -f [OR]
RewriteCond %{DOCUMENT_ROOT}/$1 -d
RewriteRule (.*) - [S=2]

#
# Requested resource does not exist, do rewrite if it exists
in /archive
RewriteCond %{DOCUMENT_ROOT}/archive/$1 -f [OR]
RewriteCond %{DOCUMENT_ROOT}/archive/$1 -d
RewriteRule (.*) /archive/$1 [L]
#
# Else rewrite requests for non-existent resources to
/index.php

RewriteRule
(.*) /index.php?q=$1 [L]

Send From: https://www.smore.com/v6vm-penomet-hydro-pump


Spam, closing.

I opened a ticket to block this user in the Fedora Infra trac: https://fedorahosted.org/fedora-infrastructure/ticket/4633

resolution: => invalid
status: new => closed

Metadata Update from @derekbarnes361:
- Issue marked as blocked by: #2579
- Issue set to the milestone: NEEDS_TRIAGE

4 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/3580

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata