KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a folder named "folder1" in my root directory www.domain.com/ www.domain.com/folder1 I need to redirect all the requests to www.domain.com that turn up to be a 404 error, to folder1. Like so: www.domain.com/a_file.txt If a_file.txt doesn't exist, look in folder1: www.domain.com/folder1/a_file.txt I want this to work the same for subdirectories, like so: www.domain.com/a_folder (redirect if it doesn't exist in the root) www.domain.com/folder1/a_folder I know I should use RewriteCond %{REQUEST_FILE} !-f but I can't seem to figure it out.
Tags (comma-separated)
Save Edits
Cancel