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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:07:21+00:00 2026-05-30T21:07:21+00:00

I am attempting to implement a simple Apache mod rewrite and am having an

  • 0

I am attempting to implement a simple Apache mod rewrite and am having an issue with it. The pattern I am providing does not seem to be matching,although from what I can tell it should.

I am placing these rules in my .htaccess file. Here is the file in it’s entirety:

RewriteEngine on
RewriteRule ^détails-details-eng.php/([\d]+)/*([\w'-]*)$ détails-details-eng.php?id=$1 [L]
# done for testing
RewriteRule ^mytest/?$ index.php [NC,L]

The functionality I am looking for is, coincidentally similar to how stackoverflow’s urls look. When I browse to

détails-details-eng.php/1/somtext

I go the détails-details-eng.php page but the id of 1 is not being passed(a quick print_r($_GET) confirms). I know mod_rewrite is enabled because going to :

mytest

resolves to index.php as it should.

Could anyone tell me what I am doing wrong here? When I check my regular expression via RegExr
it seems to be what I am looking for. Any help is very much appreciated. 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-05-30T21:07:22+00:00Added an answer on May 30, 2026 at 9:07 pm

    Here is the rule that you will need:

    RewriteRule ^détails-details-eng\.php/([^/]+)/[^/]*/?$ détails-details-eng.php?id=$1 [L,NC,QSA]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I seem to be having some issues while attempting to implement logging into my
I'm attempting to implement a simple Box Blur, but am having issues. Namely, instead
I am attempting to implement the Visitor Design Pattern using OCaml's OO constructs and
I'm attempting to implement a simple Single Sign On scenario where some of the
I'm attempting to implement the latest Facebook Connect SDK and I'm having some troubles.
I am attempting to implement the jquery UI Autocomplete feature and I am having
I am attempting to implement a very simple Trie in Java that supports 3
I'm attempting to implement a simple client side validation in a web app I'm
I am working with libmcrypt in c and attempting to implement a simple test
Attempting to implement a poor man's test of whether a process is still running

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.