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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:37:22+00:00 2026-05-11T07:37:22+00:00

Server: Apache I’m looking to rewrite my urls in the following way, and I

  • 0

Server: Apache

I’m looking to rewrite my urls in the following way, and I can’t figure out a way to get it to work.

http://website.com/index.html 

I want it to redirect to:

http://website.com/ 

So basically I want to load index.html, but not display it in the url. I also don’t want to give it another name. I’m not looking for /index.html to become /index

Additionally, I’m trying to have any GET data such as:

http://website.com/index.html?id=0&name='fred' 

To rewrite to:

http://website.com/?id=0&name='fred'. 

If you have a solution that is not using .htaccess files that’s fine as well.

  • 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. 2026-05-11T07:37:22+00:00Added an answer on May 11, 2026 at 7:37 am

    I believe this should work:

    RewriteEngine on RewriteRule ^index\.html(.*)$ /$1 [R=permanent,L] 

    This will redirect any requests that start with /index.html to simply ‘/‘ and will preserve any arguments that come after index.html

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

Sidebar

Related Questions

I'm trying to run the following example http://mrdoob.github.com/three.js/examples/webgl_geometry_cube.html on my local apache and I
server: apache http server 2.2 problem: code does not load my text file hello
when server (apache or nginx) logging http request into the log file, (i.e. append
I'd like to remove the following headers: Connection: Keep-Alive Server: Apache/2.2.13 (Win32) Vary: Accept-Encoding
I need to read binary file from intranet http server and get it to
I have apache as http server and php, i sent about 5 simultaneous requests
I implemented a strong authentication in a web server (apache) and it work great.
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
The UPS server keeps giving me this response : HTTP/1.1 200 OK Server: Apache
I shoot the following Post request to a remote apache server,hosting a small php

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.