softmaji-header-wbg-min
softmaji-header-wbg-min
softmaji-blue-header-min
softmaji-blue-header-min
  • Home
  • Services
    • Website Designing
      • Responsive Website Design
      • Static Website Design
      • Website Redesign
      • Landing Page Design
    • Website Development
      • PHP Website Development
      • WordPress Website Development
      • Ecommerce Website Development
      • Custom Website Development
    • Digital Marketing
      • Google Adwords/PPC
      • Facebook Promotion
    • SEO Service
  • Trainings
    • Learn Web Development
    • Learn Graphics Design
    • Learn Business Communication Skills
  • Pricing
  • Portfolio
  • Events
  • Offers
  • Contact Us

Steps to Set WordPress to Ignore a File Path

HomeSteps to Set WordPress to Ignore a File Path

Offer Expire Soon..


Only New User..


Sometimes, it is important to allow access to a file or directory but don’t require a sub domain. For example, when you upload a file or folder to your public_html directory, but WordPress shows a 404 error while attempting to access its file path. In such cases, you can create a rewrite condition within your .htaccess file to force your WordPress website to ignore the file path of that file. With this a file – e.g. domain.com/file.html – will get displayed as is instead of embedded as part of the parent WordPress website.

Steps to Edit WordPress to Ignore a File Path

  1. Login to your account via SSH or cPanel File Editor, navigate to your WordPress directory.
  2. Open your website with .htaccess file.
  3. Check below the default WordPress .htaccess file:# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPressAdd the below code above the RewriteCond lines, replacing file with the file path to your saved files:RewriteCond $1 !^(/file)
  4. Then save your changes.
Faizan Khan
19
Latest News
Prev PostLearn to Fix the ‘No update required’ Message in WordPressMay 14, 2024
Next PostHow To Reset WordPress Password With phpMyAdmin?May 14, 2024

Related items

Android Developer KYC
Latest News

Google’s New Android Developer Verification: What You MUST Do

Big News for All Android Developers! If you create apps for the Google Play Store, you nee

SoftMaji InfoTech
24/09/2025
4
gemini-on-break
Latest News

Gemini is Currently on a Break – What Does This Mean?

If you are searching “Gemini is currently on a break”, you are not alone. Many people arou

SoftMaji InfoTech
04/09/2025
20
2
Latest News

iOS 18.5 vs. iOS 19: Full Comparison of Every Feature

Apple is always updating the software that runs on our iPhones. In 2025, we have two impor

SoftMaji InfoTech
10/07/2025
47
softmaji-header-wbg-min
SoftMaji is one of the affordable web development company in the web development industry. You don’t have to go searching anywhere for finding a reliable web development partner because we have crafted web development solutions that can fill the void left by others in the market.
Services
  • News Portal Development
  • Custom Website Development
  • PHP Website Development
  • Ecommerce Website Development
  • WordPress Website Development
Shortlinks
  • Blog
  • Offers
  • Events
  • Pricing
  • Reviews
  • Portfolio
  • Our Team
  • Payment Options
  • Explore Packages
Company
  • FAQ
  • Careers
  • Sitemap
  • Feedback
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Refund And Cancellation
Contact Us
4/40 Vipul Khand , Gomti Nagar Lucknow
Uttar Pradesh 226010
Landline - +915223162418
Email - hello@softmaji.in
Office Time Mon - Sat
(10:00AM - 5:00PM)
Sunday Close
+91 9795405324
Lucknow , Uttar Pradesh
Copyright © 2016-2025. All Rights Reserved.