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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:37:18+00:00 2026-05-31T03:37:18+00:00

I am looking to create an SEO friendly URL after a filter has been

  • 0

I am looking to create an SEO friendly URL after a filter has been submitted in an html form.

After playing around for a while I have found a way, however I was wondering what otehr people think of it as I’m new to development.

I have added some rewrite rules in the .htaccess file to make the urls more friendly. Examples below:

Original URL:
site-nane/list.php?brand=brand1&min-price=0&max-price=2000

URL after rewrite:
site-name/section/brand1/0-200

Currently I have the form that submits the information to a separate php page which collects the variables and creates a new url from it which then redirects with a 301. Example of php below:

$min = $_GET[‘min-price’];
$max = $_GET[‘max-price’];
$brand = $_GET[‘brand’] ;

header ('HTTP/1.1 301 Moved Permanently');
header('Location: http://site-name/section/' . $brand . '/'. $min.'-'.$max );
exit();

As you can see it collects the info and takes you back to the page and declares the previous page has permanently moved.

Questions:

  1. Although this maybe quite primitive, will this still be ok to use without causing too much trouble?

  2. Will google hate me for creating so many 301’s

  3. Just noticed the code header(“Location: /foo.php”,TRUE,301); would it be best to use this or no difference?

  • 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-31T03:37:20+00:00Added an answer on May 31, 2026 at 3:37 am
    1. Yes, I see no issues with your solution. Even if malicious user input was given it would just redirect to a non-existing page.

    2. I don’t think so. You already use the right code 301 instead of the default 302 which might cause some trouble / did create some havoc with regard to Google, stolen PR and SEO

    3. Using header(“Location:…”, true, 301); is advisable. This way php could automatically make decisions based on the environment. E.g. if using an HTTP/1.0 connection php could send the 301 code with HTTP/1.0 instead of your fixed HTTP/1.1 in your solution. But still, either way is fine.

    But one question: why don’t you link directly to your nice URL? mod_rewrite which you are using would then already take care of assigning the parameters given with the URL to variables that you could access via $_GET as usual.

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

Sidebar

Related Questions

I'm looking to create favicon.ico files programatically from Python, but PIL only has support
im looking to create thumbnails that has 100px by 100px dimension. i've seen many
Im looking to create a form where the user will select from a list
I'm looking to create on-the-fly tree diagrams using PHP, HTML, and CSS. Mock-up below:
I have been looking and looking around on the web for an answer for
I'm looking to create a form that uses radio buttons but as soon as
I`m looking to create a form where upon submission, all the values from the
I'm looking to create a binary that takes an html string on stdin, and
I am looking to create an option within a form to choose a theme
I looking to create a custom calender with Zend Framework, I am hoping that

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.