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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:09:57+00:00 2026-06-17T15:09:57+00:00

I have XAMPP installed on laptop with Mod Rewrite activated and running. I have

  • 0

I have XAMPP installed on laptop with Mod Rewrite activated and running. I have a page on my website as following:

http://localhost/TripMan/staff/viewstudent.php?id=2

I would like to make it so that when people visit the URL above it is displayed as:

http://localhost/TripMan/staff/studentinfo/2

How would I write a rewrite rule to do this? I have never used this feature before.

Thanks

  • 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-17T15:09:58+00:00Added an answer on June 17, 2026 at 3:09 pm

    You need to use an .htaccess file like so:

    # Turn on the rewrite engine
    RewriteEngine On
    
    # Set student rewrite
    RewriteRule ^TripMan/staff/studentinfo/([0-9]*)/?$ TripMan/staff/viewstudent.php?id=$2 [NC,QSA]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently installed xampp, followed the installation. MySQL/apache. (I have same website running on
I have XAMPP installed in local laptop. And I have a almost static ip.
I installed XAMPP and have an apache server running. My files are located on
I have XAMPP installed, I run everything on my localhost/ So imagine I have
I want to install wordpress on localhost I have downloaded and installed XAMPP .
I have installed drupal on my localmachine(ubuntu, Xampp), at localhost. Path and Pathauto modules
i have installed XAMPP 1.7.4, now my project URL is http://localhos.host/amu and my IP
I've got xampp installed on my laptop runing XP, and it's been running without
I have XAMPP installed on my local laptop (Vista) and it works fine. Apache
I'm new to PHP. I installed XAMPP and have Apache running. I created helloworld.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.