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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:52:56+00:00 2026-06-18T00:52:56+00:00

Possible Duplicate: .htacces to create friendly URLs. Help needed I am new to url

  • 0

Possible Duplicate:
.htacces to create friendly URLs. Help needed

I am new to url rewritting so here’s my query

I have a site http://www.mysite.com/ichat now if a request comes like `http://www.mysite.com/ichat/a2b35‘

I want to redirect it to a php file in my server in the ichat directory as under

http://www.mysite.com/ichat/chat.php?chatid=a2b35

but if the url is like this

`http://www.mysite.com/ichat/special/a2b35‘

i want to redirect it to

http://www.mysite.com/ichat/chat.php?special=yes&chatid=a2b35

the chatid will be alphanumeric without special characters. Is this redirection possible or i need a physical special folder for this to work?

  • 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-18T00:52:57+00:00Added an answer on June 18, 2026 at 12:52 am

    Sure, just take advantage of the fact that rewrites are ordered in evaluation:

    RewriteRule ^/ichat/special/(.+) /chat.php?special=yes&chatid=$1 [L]
    RewriteRule ^/ichat/(.+) /chat.php?chatid=$1 [L]
    

    The [L] means that rule evaluation will stop at the rule if it matches it, so any /ichat/special/ url will get caught by the first rule, and the other /ichat/ urls will get caught by the second.

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

Sidebar

Related Questions

Possible Duplicate: .htacces to create friendly URLs. Help needed I would like to have
Possible Duplicate: .htacces to create friendly URLs. Help needed I am using ids to
Possible Duplicate: Clean URLs for search query? I made a php webpage for checking
Possible Duplicate: Url Rewriting Help How do I get a url ending in /index.php?p=2
Possible Duplicate: using seo user friendly in php I have 3 PHP files: index1.php,
Possible Duplicate: Create vanity URLs in a LAMP configuration Once a user registers, I
Possible Duplicate: Query Strings & Mod ReWrite I have written a .htaccess file which
Possible Duplicate: How to add .php extension using .htaccess url rewriting? I want to
Possible Duplicate: how to remove index.php from url in codeigniter ? I want to
Possible Duplicate: .htaccess rewrite URL not showing correctly? Im trying to hide dynamic 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.