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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:52:24+00:00 2026-05-13T23:52:24+00:00

I am trying to redirect everything to a single page from my /website/folder/ directory.

  • 0

I am trying to redirect everything to a single page from my /website/folder/ directory.

I added a simple .htaccess with this simple code (I know this would require more code in .htaccess but it’s just a test).

RewriteEngine on
RewriteRule .* index.php [NC,L]

When I try :

http://127.0.0.1:8888/website/folder/fileDoesntExistMustGoIndex

I have an "Object not found 404" error and the access.log display:

127.0.0.1 - - [13/Mar/2010:13:48:31 -0500] "GET /website/folder/fileDoesntExistMustGoIndexHTTP/1.1" 404 1118

I have check the httpd.conf and I see nothing that could alter this .htaccess statement. Any idea?

Edit:

RewriteEngine on
RewriteRule .* http://www.google.ca [NC,L]

This works… but not when I try to rewrite to a page of mine.

  • 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-13T23:52:24+00:00Added an answer on May 13, 2026 at 11:52 pm
    RewriteEngine On
    RewriteBase /
    RewriteRule . index.php
    

    also try

    RewriteLog "rewrite.log"
    RewriteLogLevel 3
    

    to see what happens

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

Sidebar

Related Questions

Trying to block directory access from everyone except 1 IP address. This .htaccess code
So I have moved a website and am trying to 301 redirect everything, which
I am trying to do a 301 redirect of everything from an old subdomain
I've been trying everything to manage a redirect from www.domain.com to domain.com, but nothing
I'm trying to redirect requests for a wildcard domain to a sub-directory. ie. something.blah.example.com
We've been trying to redirect from one action to another, hoping that data would
I'm trying to add a simple 301 rule to the .htaccess file of a
I am trying to redirect erroneous page requests - 404 errors - to a
I am trying to redirect a user when they entire a URL in this
Update: The problem below occurs when I add: <script src=http://code.jquery.com/jquery-1.7.1.min.js></script> I'm trying to redirect

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.