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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:44:48+00:00 2026-06-10T07:44:48+00:00

I was wondering how to pass several (two) values through url as a clean

  • 0

I was wondering how to pass several (two) values through url as a clean url.
I’ve done clean urls before, but never with multiple values and it doesn’t seem to be working.

This is what the url looks like now:

http://example.com/?user=Username&page=1

This is what I want it to look like

http://example.com/user/Username/page/1

I’ve tried other answers that I’ve seen on here, but they aren’t working for this certain deal.

RewriteEngine On
# Don't match real existing files so CSS, scripts, images aren't rewritten
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d

# Match the first two groups before / and send them to the query string
RewriteRule ^([^/]+)/([^/]+) index.php?user=$1&page=$2 [L] 

Thanks. 🙂
I’m using PHP by the way. 🙂

Also, will I still be able to use $_GET with this? I thought so, but I also somewhere else where it said you can’t… 😀

  • 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-10T07:44:50+00:00Added an answer on June 10, 2026 at 7:44 am

    You’re missing several matches, try:

    RewriteEngine On
    # Don't match real existing files so CSS, scripts, images aren't rewritten
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+) index.php?$1=$2&$3=$4 [L] 
    

    This will take a URL like:

    http://example.com/a/b/c/d
    

    to the URI:

    /index.php?a=b&c=d
    

    will I still be able to use $_GET with this? I thought so, but I also somewhere else where it said you can’t.

    In the above example, when you look at $_GET['a'] you’d get b.

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

Sidebar

Related Questions

I'm wondering if there is a cleaner way to pass multiple variables in a
I was wondering how to pass and store values from an array to class
I am wondering how to pass an array or a list from one .jsp
i was wondering how to pass an object to a partial, and then again
So, I'm wondering how to pass parameters to a perl script from a .bat
I'm wondering if it's possibile to pass (any way is ok, also hacks) a
I am wondering if there is any way to pass in a value when
I was wondering if there is a way that I can pass variables like
I am wondering if there is a way to pass a variable to a
I'm wondering the opinion of what is the best way to pass a lot

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.