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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:25:40+00:00 2026-06-06T01:25:40+00:00

Hi i have come across some urls of the type http://localhost/jsfweb/cat/query/ where query is

  • 0

Hi i have come across some urls of the type "http://localhost/jsfweb/cat/query/" where query is a string that will return some results from a mysql database. I am familiar with urls of the type "http://localhost/jsfweb/cat.php?query=query" how can i use those urls with php?

  • 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-06T01:25:42+00:00Added an answer on June 6, 2026 at 1:25 am

    Use modrewrite

    You do something like this:
    Inside a file named ‘.htaccess’

    Options +FollowSymlinks
    Options -MultiViews
    RewriteEngine on
    RewriteBase /php/eclipse/ShiftPlus2/
    
    #forbidden area
    #RewriteCond %{THE_REQUEST} index\.php
    #RewriteRule ^index\.php$                               http://localhost/php/eclipse/ShiftPlus2/?   [R=301]
    
    #unique case
    RewriteRule ^email$ email.html [L]
    
    #general case
    RewriteRule ^([a-zA-Z_]*)/?$                                    index.php?query=$1                   [L]
    RewriteRule ^([a-zA-Z_]+)/([a-z]+)/?$                           index.php?query=$1&action=$2          [L]
    RewriteRule ^([a-zA-Z_]+)/(-?\d+)/?$                            index.php?query=$1&id=$2              [L]
    RewriteRule ^([a-zA-Z_]+)/([a-z]+)/(-?\d+)/?$                   index.php?query=$1&action=$2$id=$3   [L]
    RewriteRule ^([a-zA-Z_]+)/(\w+)/?$                              index.php?query=$1&special=$2         [L]
    
    #RewriteRule ^index.php$ login [R]
    

    Where on the left side, there is a Rewrite rule with a regular expression and on the right, this is the real link like you know.

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

Sidebar

Related Questions

I have come across some legacy code that has the following type of line:
I recently have come across with a need for some type of translation-type that
I have come across some c code where the there is an enum type
I am just starting .Net development (C#) and have come across some code that
I have come across some legacy code that has raised all my heckles as
Recently I have come across a curious pattern in some code. We know that
I have come across with this syntax while reading some others code Map<String, String>
If have come across an anomaly where it seems that some machines that have
I have come across some Base64 conversion functions in .net(FromBase64.string etc). What i want
I've come across some SQL queries in Oracle that contain '(+)' and I have

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.