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 7086141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:30:47+00:00 2026-05-28T07:30:47+00:00

For some reason we seem to be seeing lots of 404 errors with all

  • 0

For some reason we seem to be seeing lots of 404 errors with all requested URLs going to a valid link but with a trailing /null. I don’t know where this is coming from as it’s not in the front end code.

For example: http://domain.com/valid/valid/null

Since I can’t find the source of these trailing nulls I’d like to remove them with htaccess but I’m not having much luck:

RewriteRule ^([^/null]*)/null$ http://www.domain.com/$1 [NC,R=301]

My .htaccess knowledge is a little rusty. Could anyone point me in the right direction?

  • 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-05-28T07:30:47+00:00Added an answer on May 28, 2026 at 7:30 am

    It is best to discover the source of the error as mentioned above.

    If you need a respite while looking for it, the rules below, placed in .htaccess file in the root directory of your site, should strip out a trailing /null

    RewriteEngine On
    RewriteBase /
    
    #remove trailing null
    RewriteRule ^(.+)/null$ http://www.domain.com/$1 [NC,L,R=301]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got model that use ExtendAssociations , but for some reason deleteHABTM doesn't seem
This should be really easy but for some reason it doesn't seem to be.
For some reason my LDAP search doesn't seem to be returning all the attributes
I know ASP.NET does this automatically, but for some reason I can't seem to
For some reason, I can not seem to change the default position of an
For some reason, Section 1 works but Section 2 does not. When run in
I'm not sure what's changed, but for some reason I'm getting a problem with
Im trying to build a tic tac toe game, and for some reason seem
i have a simple C program that uses CRITICAL_SECTION. for some reason it seem
For some reason I cannot seem to get IE8 to display my jqgrid right

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.