Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:44:53+00:00 2026-06-13T07:44:53+00:00

I checked my WordPress theme on broken link checker website and its giving me

  • 0

I checked my WordPress theme on broken link checker website and its giving me a list of broken URLs.

See:

http://www.esmedicare.com/locations.html ( parent page: http://www.esmedicare.com/ )
http://www.esmedicare.com/laser-treatments/locations.html ( parent page: http://www.esmedicare.com/laser-treatments/ )

The links with /location.html goes to 404 page and I want to redirect these pages to their parents page. i.e. Just remove the /location.html from URL and to redirect these to their parent URL mentioned in the bracker.

I added code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/locations.html$ /$1/ [L,R=301]

to my .htaccess file, now some /location.html pages are redirecting to their parent page but still not all of them.

Please solve my issue…I just want to remove the /location.html from last in the URL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:44:54+00:00Added an answer on June 13, 2026 at 7:44 am

    If you need to include the web root (/) then you need to make the slash optional:

    RewriteRule ^(.*?)/?locations.html$ /$1/ [L,R=301]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WordPress website and some link checker plugins are reporting all the
I just finished create my own wordpress theme. But when I checked the html
I checked this link of S.O : Pop Images like Google Images And tried
I'm building a Wordpress theme, and I have these snippets in my style.css: #content
I moved a Wordpress website from one server to another and I am now
This is my first attempt at coding a custom wordpress theme and I'm almost
i've been working on a theme options panel for wordpress. but i've run into
I currently have a WordPress theme online and appears to work fine but one
I have a remote updater script that resides in my wordpress theme folder. The
Checked the documentation but I couldn't find anything. I want list the cordinates of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.