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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:45:48+00:00 2026-05-20T04:45:48+00:00

It seems I can finally no longer avoid the use of apache rewrite rules

  • 0

It seems I can finally no longer avoid the use of apache rewrite rules lol. So just trying to learn about them.

Im trying to create seo friendly urls.

This is what I have so far. The rewriteCond is wrong though I think:

RewriteCond %{REQUEST_URI} results/(.*)/(.*)/([0-9]*)/(.*)/([0-9]*)/$ 
RewriteRule ^results/(.*)/(.*)/([0-9]*)/(.*)/([0-9]*)/$ results.php?p1=$1&p2=$2&p3=$3&p4=$4&p5=$5 [L]

When I go to the url:
http://www.something.co.uk/results/foo/01-01-2011/1234/01-01-2011/1234 it actually works and posts all the GET values correctly. However my issue is when I submit the values to results.php from another page they always show the old school way with the ?=foo&01-01-2011..etc in steand of the /results/foo/…etc

Now from what I have read the rewriteCond is meant to take care of this. However im not sure what im doing wrong and why it is not redirecting to to the new version.

Any help, guidance, examples would be appreciated

Thanks

p.s if you see anything in the above that is bad practise or anything seriously flawed please do also comment. As I say im still learning 🙂

  • 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-20T04:45:49+00:00Added an answer on May 20, 2026 at 4:45 am

    Your rewrite condition isn’t needed – that’s what the first part of the rule is for, matching a pattern.

    RewriteRule ^results/(.*)/(.*)/([0-9]*)/(.*)/([0-9]*)/$ results.php?p1=$1&p2=$2&p3=$3&p4=$4&p5=$5 [L]
    

    It sounds like you’re also expecting the rewrite rule or condition to update URLs the system outputs. All they do is intercept requests that match their parameters and redirect them internally. So if you visit results.php, the URL won’t be changed and you’ll see the, as you say, old-school URL.

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

Sidebar

Related Questions

It seems that anyone can snoop on incoming/outgoing .NET web service SOAP messages just
It seems like I can't use shell_exec or proc_open on my shared server. The
every introduction and sample that I can find seems to use GLUT or some
This seems like it should have a super easy solution, but I just can't
My problem seems to be really simple but I just can't get the reason
It seems both can be overloaded, but somebody said not..... What's the case?
It seems I can't easily have an XSD declaration for this simple XML <root>
I can't seems to change the default color of the required field validator. In
It seems that I can't control the NSApp delegate from within a System Preferences
According to this question it seems like you can do this for Methods. What

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.