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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:12:12+00:00 2026-05-21T10:12:12+00:00

Ok so I have this site …. with the url http://posnation.com/ and there are

  • 0

Ok so I have this site…. with the url

http://posnation.com/

and there are alot of pages that i need to save the url structure for….like this

http://posnation.com/restaurant_pos
http://posnation.com/quickservice_pos
http://dev.posnation.com/retail_pos

ext….

The problem that i have now is that i want to save the same url for all these pages and I am looking for the best approach. The way its working now is its done with a code in miva and we are getting off miva…. I know I can create a folder named restaurant_pos or whatever the url is and create an index.php in there.This approach will work but the problem is I need to do this for 600 different pages and I dont feel like creating 600 folders in the best approach.

any ideas

  • 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-21T10:12:14+00:00Added an answer on May 21, 2026 at 10:12 am

    You should use .htaccess to route all the requests to a single file, say index.php and do the serving from there based on the requested URL.

    The following .htaccess file on the server root will route all the requests to your index.php:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?route=$1 [L]
    </IfModule>
    

    Now you should parse the $_REQUEST[‘route’] to identify which file you should serve. Here is an example that will serve a page based on the last element of the URL (ex: pos):

    <?php
    
    $parts = explode($_REQUEST['route']);
    
    if ($parts[count($parts) - 1] == 'pos') {
        include "pages/pos.php";
    }
    

    Definitely you’ll need to write your own logic, the above is just an example.

    Hope this helps.

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

Sidebar

Related Questions

I have this site here http://cowelllaserhair.com/index.php and you will notice that there is a
I have this site: http://www.problemio.com and if you go there and click any link
i have this site: http://yoursdproperty.com/index.php?option=com_jumi&fileid=8&Itemid=34 i need to increase the width of the holder
Say I have this url: http://site.example/dir/ In this folder I have these files: test.ascx.cs
I have this site... http://willruppelglass.com/ and it looks good in IE9, 8, 7, Firefox
so I have this site: http://webzilla-il.com/contactus.php , now i know it's not in english
I have this site: http://www.problemio.com which currently has a solid-colored background and the body
I have this site : http://test.tamarawobben.nl What's the best way to achieve that the
I have this site that I need to find the root folder / plus
I have this site http://www.taranmarlowjewelry.com/ ....notice when you first goto the site, look at

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.