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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:49:57+00:00 2026-06-15T03:49:57+00:00

On a website there is folder products/ and inside are php files with some

  • 0

On a website there is folder products/ and inside are php files with some Uppercase characters.

Example: http://www.example.com/products/BIT-Defendar.php

Now this urls exist for years and all around search engines. It was a mistake from the product manager.

But I want to fix this i want only lowercase URL’s.

Will this fix my issue? CheckSpelling On CheckCaseOnly On (1)

And whats different with mentioned above and: (2)

RewriteMap tolowercase int:tolower 
RewriteRule ^(.*)$ ${tolowercase:$1}

If I use (1) then all works wither I request url lower cased or upper-cased (but will I have search engine problems?)

If I use (2) I have to rename all files inside of products/ folder to lowercase.

—- EDIT —-

When i use RewriteRule i get transferred to domain root if url is uppercase, if i use CheckSpelling and CheckCaseOnly then all fine.

I have tested with this and i get:

RewriteCond %{REQUEST_URI} [A-Z]    

– This condition was met

RewriteRule (.*) ${tolowercase:$1} [R=301,L]    

– This rule was met, the new url is http://www.example.com/${tolowercase:products/BIT-Defendar.php}

– Test are stopped, because of the R in your RewriteRule options. A redirect will be made with status code 301

My setup in httpd.conf:

<VirtualHost *:80>
 RewriteMap tolowercase int:tolower
</VirtualHost>
  • 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-15T03:49:58+00:00Added an answer on June 15, 2026 at 3:49 am

    Using the CheckSpelling and/or CheckCaseOnly directive may cause undesired results, as mentioned at the bottom here:

    1, performance issues
    2, some files might be skipped
    3, some files might be misinterpreted
    

    I would think it unwise to allow apache make the corrections for you, as you rely on apache to search directories and files for every single look up, whereas with the lowercase map, it puts you in full control and just creates strict standards.

    I would recommend adding a flag [R=301] which will inform search engines that this is the new file, and you won’t have any search engine related issues:

    RewriteMap tolowercase int:tolower 
    RewriteRule ^(.*)$ ${tolowercase:$1} [R=301,L]
    

    You would have to rename your files, as they will no longer be recognized, but you can write a simple script to scan all files, and rename them as lowercase.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed my website in a subfolder www.server.com/folder/index.php Is there any way to
im working on a website. there is a folder and .jpeg files inside ,
i am developing website there some files which are placed in folder and also
In my website there is a link like this http://backlinks.cheapratedomain.com/backlinks.php?url=emobileload.com for better SEO I
I have a web site http://www.mydomain.com Here I have created a sub folder http://www.mydomain.com/products
I have a folder on my website just for random files. I used php
I have a asp.net website folder namely Website3 inside website3 folder there is a
Is there a way to see the tree of a website? Let's say: www.randomsite.com
There is a website www.example.net and it has a Forum link on its home
My website has a folder called uploads and inside there is a folder for

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.