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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:43:31+00:00 2026-06-05T18:43:31+00:00

This is more for information then a problem. (On searching Stack Overflow I found

  • 0

This is more for information then a problem.(On searching Stack Overflow I found more problem related questions then solution or explanation)
I am working on a PHP website for real estate,something very similar to this.Here,each property in the list takes the user to a different page(URL shows a different link for each property clicked) and displays the details.Also the and tags are changed.There are about 600 properties in a single city on the website and definitely there cannot be 600 Pages.Hence they must have used some framework or URL rewriting technique to achieve this. I am fairly new to PHP and no experience with frameworks(having worked on classical PHP).
I would like responses/suggestions to understand how such functionality(Ideally similar to the site) can be achieved using any PHP framework or some URL rewriting technique.
Sorry if the question sounds too broad to explain,but any pointers will also do which can briefly explain the scenario for me to get started.

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-06-05T18:43:34+00:00Added an answer on June 5, 2026 at 6:43 pm

    Using a module in Apache called mod_rewrite and by placing a file named .htaccess in your web directory with the following content (for example)

    RewriteEngine On
    RewriteRule ^([^/]*)\.php$ /view.php?id=$1 [L]
    

    As you can see, when the URL example.com/some-cool-apartment.php is requested it is as if the following was requested example.com/view.php?id=some-cool-apartment

    Of course other web servers (such as IIS) support URL rewriting using other syntax. IIS uses a file named web.config with the following content:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="RewriteUserFriendlyURL" stopProcessing="true">
                        <match url="^([^/]*)\.php$" />
                        <action type="Redirect" url="/view.php?id={R:1}" appendQueryString="false" />
                    </rule>
                </rules>
            </rewrite>
    
        </system.webServer>
    </configuration>
    

    I hope that answered your question

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

Sidebar

Related Questions

For more information see this Example use strict; use warnings; use CGI::Simple; use DBI;
Why are joins bad or 'slow'. I know i heard this more then once.
I read some of the posts on this problem, and then recommended placing the
I've not had any luck searching for a solution to this, partly because I'm
I spent some time searching for an answer to this and found plenty of
There is this famous quote that says Procedural code gets information then makes decisions.
I want to know this more in detail. Is it a realtime scheduler? An
To make this more clear, I'm going to put code samples: $file = fopen('filename.ext',
I am wondering if there is a way to handle this more elegantly. After
Ok, I'm going to try to make this more clear because my last question

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.