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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:29:35+00:00 2026-06-16T17:29:35+00:00

I am trying to build a site which has the following pages which needs

  • 0

I am trying to build a site which has the following pages which needs vanity urls,

  • account.php
  • questions.php
  • profile.php

I need to display

http://www.mysite.com/account?req=settings
http://www.mysite.com/account?req=questions
http://www.mysite.com/account?req=answers

as following

http://www.mysite.com/account/settings
http://www.mysite.com/account/questions
http://www.mysite.com/account/answers

And for the other files I need the following,

etc:-
http://www.mysite.com/questions?id=0484684

As

http://www.mysite.com/questions/0484684

And

http://www.mysite.com/profile?id=123456

as

http://www.mysite.com/profile/123456

Would anyone help me because I really need to make this possible.

I would like to remove the .php extention from the url too.

I like to say that I have no experience in htaccess files.

Thanks for the help, it worked !!!

  • 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-16T17:29:36+00:00Added an answer on June 16, 2026 at 5:29 pm

    In your .htaccess file, add these rules:

    RewriteEngine on
    RewriteBase /
    
    RewriteRule ^account/([^/\.]+)/?$ account.php?req=$1 [L,NC,QSA]
    RewriteRule ^questions/([^/\.]+)/?$ questions.php?id=$1 [L,NC,QSA]
    RewriteRule ^profile/([^/\.]+)/?$ profile.php?id=$1 [L,NC,QSA]
    

    You should be able to add new rules based on how these work if you need them in the future.

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

Sidebar

Related Questions

This I'm trying for transfer my current Apache/Modperl site to Starman, and need build
So I am trying to build this reputation bar for my site which will
I'm trying to build a parallax site, which will move few elements while scrolling
I'm trying to build multilangual site. I use this piece of code to detect
I was trying to build a 'site search' on a simple http site. I
I'm trying to build a site that loads another site within it, but with
I am trying to build a site with iphone / android / ipad compatibility
Im trying to build call to action button on my site using jQuery. I
I have a site I'm trying to build and I've hit one little snag
I am trying to build a shopping cart site. When a user click add

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.