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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:54:53+00:00 2026-06-05T01:54:53+00:00

I have what I thought was a simple mod_rewrite rule. RewriteEngine on RewriteCond %{REQUEST_FILENAME}

  • 0

I have what I thought was a simple mod_rewrite rule.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^store/([a-z0-9_\-]+)/?([a-z0-9_\-]+)?(.*)?$ store/$2?store_name=$1$3 [L]

However, when I go to a URL like:

http://www.mydomain.com/store/e95_airport/

It turns into:

http://www.mydomain.com/store/e95_airport/////////////////////

I’m expecting the URL to load:

index.php?store_name=e95_airport

It works fine when I call a URL like:

store/e95_airport/some-page-other-than-index.php

I’ve disabled all other mod_rewrite rules just in case there was a conflict somewhere else in my .htaccess file. Is there anyone here who can diagnose what’s wrong with my rewrite rule? Any help is greatly appreciated!

  • 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-05T01:54:56+00:00Added an answer on June 5, 2026 at 1:54 am

    The problem is that the site is getting itself into a loop because you’re redirecting it to essentially the same address.

    Okay, so you are changing it with the rewrite, but the URL it rewrites it to still matches the expression.

    The way mod_rewrite works is that once it’s rewritten the URL, it then effectively requeries itself with the new URL. So if your new URL still matches the expression, it will get into a loop.

    Why it stops at 21 slashes? This is because Apache will detect when it’s in a loop, and stop if it requeries itself twenty times.

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

Sidebar

Related Questions

http://www.interact-sw.co.uk/iangblog/2004/04/26/yetmoretimedlocking Why is this line needed? System.GC.SuppressFinalize(tl.leakDetector); I would have thought the finalizer should
I'm using apache's mod_rewrite to make my application's URL's pretty. I have the basics
I have what I thought was simple JSF navigation setup but when I hit
You would have thought that tere is a simple solution to this but there
Thanks for reading this. I would have thought it would be as simple as
I'm trying to do (what I would have thought) was a simple macro expansion
I'm trying to create a very simple WPF application. I'd like to have an
Should have been simple I would have thought. I want to force the PC
I am working though some simple DX tutorials, and have hit an early snag.
I would have thought that this would be an easy thing to do, but

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.