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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:59:52+00:00 2026-05-24T18:59:52+00:00

http://www.a.com/content/1 http://www.a.com/content/seo-text-1 RewriteRule ^content/(\d+)|.+?-(\d+) action/index.php?id=$2 This rule don’t work second url , How to

  • 0
  1. http://www.a.com/content/1
  2. http://www.a.com/content/seo-text-1

    RewriteRule ^content/(\d+)|.+?-(\d+) action/index.php?id=$2

This rule don’t work second url, How to fix it?

Thank you

  • 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-24T18:59:53+00:00Added an answer on May 24, 2026 at 6:59 pm

    If for any reason you need to have it in single rule, you can use this:

    RewriteRule ^content/(.*)-?(\d+)$ action/index.php?id=$2 [R]
    

    But more readable solution is to use two rules:

    RewriteRule ^content/(\d+)$ action/index.php?id=$1 [R]
    RewriteRule ^content/.*-(\d+)$ action/index.php?id=$1 [R]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

lets say i have this link: http://www.domain.com/content/view/1/seo-url now, lets say a user misspeled the
Consider the following scenario: http://www.restserver.com/example.php returns some content that I want to work with
I have the following URLs with the same content: http://www.mysite.com/forum/viewthread.php?thread_id=39&pid=1349 http://www.mysite.com/forum/viewthread.php?forum_id=2&thread_id=39 Which at the
I have a url on my joomla site http://www.mysite.com/index.php?option=com_content&view=frontpage&Itemid=3220 My Customer wants it to
I was going through this tutorial http://www.schillmania.com/content/projects/javascript-animation-1/ and when I institute the code, I
Has anybody used this import extension before? http://www.ayasoftware.com/content/how-import-configurable-products-csv-file-magento-system#attachments It seems to work pretty good,
what is the jquery plugin is in the right bottom of this page? http://www.suite101.com/content/rights-managed-vs-royalty-free-a57320
Found this one http://www.kite9.com/content/adl-new-visual-language-part-2 (presentation here http://www.kite9.com/content/muddle-uml ) not cheap :( Any others that
FLV format specification is here: http://www.adobe.com/content/dam/Adobe/en/devnet/flv/pdfs/video_file_format_spec_v10.pdf 1) FLV body consists of tags 2) Each
I want to download a .zip file which is available at URL http://www.nseindia.com/content/equities/cmbhav.htm by

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.