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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:18:20+00:00 2026-06-03T20:18:20+00:00

in apache .htaccess file, i’ve write, RewriteRule ^animals$ index.php?type=animals it redirects http://localhost/animals to http://localhost/index.php?type=animals

  • 0

in apache .htaccess file, i’ve write,

RewriteRule ^animals$ index.php?type=animals

it redirects http://localhost/animals to http://localhost/index.php?type=animals
and when the url typed as http://localhost/animals/ then the error occurs,
file not found.

what is the correct syntax to do the both http://localhost/animals and http://localhost/animals/ for redirecting to http://localhost/index.php?type=animals

  • 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-03T20:18:21+00:00Added an answer on June 3, 2026 at 8:18 pm

    that is done with setthing this rule, if the base is specified then all links get the base path

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

Sidebar

Related Questions

I have a .htaccess file to remove the index.php part of the codeigniter-style URL.
In my htaccess file my ErrorDocument 404 statement is not redirecting to index.php. Instead,
I am using this htaccess file on my site to remove index.php. RewriteEngine on
Im using Apache and an .htaccess file to set up some redirects. Is there
My website needs a .htaccess file that will redirect a user to index.php when
I need help to write an .htaccess file for Apache to check referer that
I am using Apache/2.2.17 (Win32) PHP/5.3.0. I have .htaccess file in one of my
I have this 301 redirect rule for Apache: RewriteEngine On RewriteRule ^park.php?park_id=3 http://hiking.comehike.com/outdoors/parks/park.php?park_id=3 [R=301,L]
Apache URL rewrite logic can be written either in conf or .htaccess file. Which
I have a php/apache website under my userdir, say http://localhost/~johnny5/ I have a /en

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.