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

  • Home
  • SEARCH
  • 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 8685907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:41:58+00:00 2026-06-12T22:41:58+00:00

I have the folowing htaccess file: RewriteEngine on RewriteRule ^(.*)-(.*)-(.*)$ index.php?page=$1&id=$2&im=$3 And inside the

  • 0

I have the folowing htaccess file:

RewriteEngine on

RewriteRule ^(.*)-(.*)-(.*)$   index.php?page=$1&id=$2&im=$3

And inside the php page I have:

href=”home-46-126″ //Contact Us

href=”home-38-129″ //News

I want to know how the redirection done?
What is the function that did this redirection ?
How Does the website know where to go if the user clicks on “Contact Us” ?

  • 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-12T22:41:59+00:00Added an answer on June 12, 2026 at 10:41 pm

    It isn’t htaccess function, htaccess just parse “home-46-126”, and redirect to index.php with these values.

    If you want to work later with these values, you have to type it in PHP script.

    <?php
    $_GET["page"]; // including "home"
    $_GET["id"]; // including "46"
    $_GET["im"]; // including "126"
    ?>
    

    Then you have to put these values to database or somethink, where you find out, that this ID and IM is page with Contact Us

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

Sidebar

Related Questions

I have the following rules in my .htaccess file RewriteEngine On #1. home page
I have the following in a .htaccess file as a test: RewriteEngine on RewriteRule
I have the following in a .htaccess file redirect 301 /page.php http://domain.com/page Which works
In my .htaccess file I have defined following rule, RewriteRule t/([^.]+)/$ /videos/tag.php?tag=$1 [QSA] The
In my .htaccess file i have the following re-write rule RewriteRule ^([a-z]*)$ work.php?album=$1 [L]
I have the following page: www.domain.com/index.php?route=information/contact and I'd like to rewrite it so that
I have the following file structure: /framework /.htaccess /index.php and the following rules in
I have the following in my .htaccess file: Options +FollowSymlinks RewriteEngine On RewriteRule ^$
I have the following .htaccess file in a directory: RewriteEngine On RewriteCond %{HTTPS} !=on
in my .htaccess file i have the following Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME}

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.