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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:01:47+00:00 2026-05-26T19:01:47+00:00

im into SEO and friendly URL’s and im trying to create a rule in

  • 0

im into SEO and friendly URL’s and im trying to create a rule in my htacess file and i need help…

Basically, i have a list of alphabet letters. If the users selects one letter, the db will show all the lyrics that starts with that letter…

so if i click C, there will be a list of lyrics and the the first is ‘Car and blues’

So, from this

htpp://www.website.com/lyrics.php?letter=C

i want to do this:

http://www.website.com/lyrics/C/

so far, this is what i have

RewriteRule ^lyrics/$ /lyrics.php?letter=$1 [L]

the rule should be smart enough to pick everything that comes after ‘lyrics’, in between the 2 slashes, and not what comes after…

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-26T19:01:48+00:00Added an answer on May 26, 2026 at 7:01 pm

    the rule should be smart enough to pick everything that comes after 'lyrics', in between the 2 slashes, and not what comes after...

    Your rule as it stands is looking for exactly lyrics/ with no possibility of anything before or after it (as defined by the ^ and $).

    Assuming you’re using letters A-Z in only capitals, you can use this:

    RewriteRule ^lyrics/([A-Z])/?$ /lyrics.php?letter=$1 [L]
    

    This will look for a single capital letter after the lyrics/ and send that value to the rewrite URL and also match both cases of having a trailing / or not.

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

Sidebar

Related Questions

I have a URL which has been converted into SEO friendly url using .htaccess.But
I have a list of li elements that I need to allow drag/drop into
I am running into an issue where I am trying to implement SEO friendly
Into a class constructor, I need to create some objects on the fly and
I asked this question about rewriting old ugly links into seo friendly ones. I
I've been working on creating seo friendly urls for my site and have done
I have a simple URL rewriting setup with a .htaccess file. Excerpt: RewriteEngine On
I am trying to use SEO-friendly URLs for a website. The website displays information
I have lots of UTF-8 content that I want inserted into the URL for
I am using mod_rewrite to create SEO URLs. Basically the thing works in the

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.