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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:04:30+00:00 2026-05-29T05:04:30+00:00

I have started to learn the F3 framework (PHP) and I have gotten the

  • 0

I have started to learn the F3 framework (PHP) and I have gotten the Hello World program running.

However, I am facing a problem which is simple but I can’t seem to get what am I doing wrong. When I keep the index.php file on the web root directory(/var/www) with the routing as –

F3::route('GET /', 'home);

and access http://localhost, I am getting the correct output. However, if I place the index.php file on the path /var/www/my_test/ and change the routing as follows-

F3::route('GET /my_test/', 'home')

and access http://localhost/my_test/ I get that the URL does not exist.

What am I missing here?

  • 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-29T05:04:30+00:00Added an answer on May 29, 2026 at 5:04 am

    Hopefully you have been able to figure this out but if not, I hope I can help.

    The .htaccess file is what points to the index.php page. If you change the location of the index.php file, you will need to modify your .htaccess. This is only if you change just the location of the index.php.

    If you move the entire contents to a subfolder, I believe that folder becomes the BASE. So if you put the entire framework into /var/www/my_test/ then /my_test/ is the BASE and anything after that slash will be processed by the framework. http://localhost/my_test/ will be routed by using F3::route('GET /','home'); and http://localhost/my_test/abc will be routed by using F3::route('GET /abc','abc');.

    You may still have to modify the .htaccess file for the folder, but I am not sure. On my computer, I created a virtual host so I could play around with it. Good luck!

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

Sidebar

Related Questions

I have recently started to learn using of Doctrine 2.0 framework for PHP. Now
I have started to learn PHP. So installed WAMP server on my windows 7
I have started to learn Zend Framework. I have done the quickstart tutorial and
I have started to learn c language but the problem is that I'm confused
i have started to learn symfony framework by reading joobet-propel book.i was in URL
I have started to learn about python and is currently reading through a script
I have started to learn ANTLR and have both the 2007 book The Definitive
I just have started to learn Haskell and combine reading books and tutorials with
greetings, today i have started to learn java using netbeans ide. i would like
I have just started to learn Ruby and got a good take on 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.