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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:05:28+00:00 2026-06-15T22:05:28+00:00

A very weird question. I can not setup a route in slim to use

  • 0

A very weird question.

I can not setup a route in slim to use the URL /loveshared

$app->get('/loveshared', function() use ($app) {
  echo "hello";
});

If I navigate in my browser to localhost/loveshared, I get a 404. I also get this 404 message when I push to my server.

I did a Find in Files… in the top direction of my project for the string loveshared. The only place it found the string was in my router file.

I also went through and did:
/l, /lo, /lov, /love, /loves…/loveshared All the routes work, up until loveshared. I also did /sharedlove and /stuffshared and they both worked.

Can anyone else confirm that /loveshared does not work with slim as a route?

  • 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-15T22:05:29+00:00Added an answer on June 15, 2026 at 10:05 pm

    Ok, I downloaded a fresh copy of Slim 2.2.0, placed it as-is on my personal site (PHP 5.3.13) running on Linux duhr 2.6.32.8 in shared host environment (Dreamhost). Then I created a file, t.php, and pasted the following into it:

    <?php
    
    require 'Slim/Slim.php';
    
    \Slim\Slim::registerAutoloader();
    
    $app = new \Slim\Slim();
    
    $app->get('/loveshared', function () use ($app) {
        echo "<p>This is a test of the loveshared controller label in the URL of a Slim project.</p>";
    });
    
    $app->run();
    

    http://jfcoder.com/slim/t.php/loveshared

    And it runs as expected. There’s either some kind of environment cause (rogue or misconfigured .htaccess file?), or something. You would need to recreate it in some way to be able to triangulate and find the problem.

    Have you tried what I have done and see if it still causes the problem you’re describing?

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

Sidebar

Related Questions

When running the command: Plot[1/x, {x, 0, 10}] I get very weird output: Not
I having a very weird problem for my asp project. My project can run
I'm getting a very weird exception when trying to deploy my app on JBOSS
This is a very weird problem. My app that runs just fine but somehow
I know the question header sounds weird, but since English is not my first
So, I think I have a very weird question. So, let say that I
I've written a small Groovy script that exposes a very weird behaviour. can anyone
it may sound a weird question not easy also to explain: Jquery works flawless
I am experiencing a very weird problem: In WPF I have a tabControl which
I have encountered a very weird situation in Python. I have a while True:

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.