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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:48:46+00:00 2026-06-01T07:48:46+00:00

Edit #2: i disabled my 404 page and the default not found page says

  • 0

Edit #2: i disabled my 404 page and the default not found page says that it’s looking for a url with .php after it:

“The requested URL /events/2012.php was not found on this server”

So now i believe it’s looking for an actual file, when it doesn’t exist. anyone??

Edit #1: looks like the looping redirect is fixed, but I still can’t figure out why the rewrites aren’t working for the events page. /events/ works just fine, but /events/2012/title-id/ goes to a 404. /breweries/ and arizona-breweries/brewery-name/ works also so i’m not sure what i’m missing.

I’m trying to add a new directory structure with my events.php page. events/2012/…
I have another directory structure under breweries.php that works just fine.

When i try to load an event sitename.com/events/2012/title-of-event-3/ it redirect loops and says “too many redirects” and the url looks like this:

sitename.com/events/2012/title-of-event-3.php.php.php.php.php.php.php.php.php.php.php/

I figure 6 hours of searching for an answer were enough. Any and all help appreciated!

(and no i don’t have sitename.com in my real htaccess file)

My htaccess file:

Options +FollowSymLinks -Multiviews
RewriteEngine on

RewriteBase /

#remove php file extension
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteCond %{REQUEST_URI} !^/blog/
RewriteRule ^(.*)/$ $1.php [QSA,L]

#clean urls
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^events/([0-9]+)/(.*)-([0-9]+)/$ events.php?year=$1&title=$2&id=$3 [R,NC,QSA]
RewriteRule ^(.*)-breweries/$ breweries.php?loc=$1 [NC,QSA]
RewriteRule ^(.*)-breweries/(.*)/$ breweries.php?loc=$1&brewery=$2 [NC,QSA,L]

#Force trailing slash after url
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_URI} !example.php
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.sitename.com/$1/ [L,R=301]

#force www
RewriteCond %{HTTP_HOST} !^www.sitename.com$
RewriteRule ^(.*)$ http://www.sitename.com/$1 [R=301,L]
  • 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-01T07:48:48+00:00Added an answer on June 1, 2026 at 7:48 am

    I solved it. I had to move the section that removed the .php extension below the url rewrite section (just above the force www part) and it worked. apparently the breweries section had been in the right place at one time so it continued to work, but when I tried to add a new rewrite it wouldn’t work properly.

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

Sidebar

Related Questions

function removeComment(bID) { $('#submitChangeComment').attr('disabled', true); $.ajax({ type: POST, url: misc/changeComment.php, data: { mode: 'del',
Taxonomy Menu created two menus, which have not gone even after I disabled it.
EDIT: I used, finally, inotify. As stefanB says, inotify is the thing to use.
EDIT 1 I apologize but after reading the 2 suggested articles I still don't
EDIT: This post was originally specific to ASP.NET, but after thinking about it I'm
EDIT: There's now a doc page on this so this question is irrelevant, also
I am using Tm2. For some reasons,I disabled a bundle with Edit with Bundles,but
How can I make an entire jqGrid disabled/readonly? I have a page with a
Author post-edit: Chosen solution (Original question remains below this box) SUMMARY: You SHOULD NOT
I have a View that handles the Edit action for editing a weekly update

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.