0

I have the same instance of laravel running on two different machines. They both have the same .htaccess file:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

The one system is running PHP 5.5, and the other PHP 5.4. The problem is, this works on the one system but not the other:

http://www.example.com/register

However, this works on both:

    http://www.example.com/index.php/register

What possible htaccess could there be that causes it to only work with index.php? I need it to work without index.php as well?

1 Answer 1

1

You may need to use RewriteBase / above RewriteEngine On if there is an inconsistency between the systems in what the root url is

Sign up to request clarification or add additional context in comments.

1 Comment

Only problem is, now the OTHER system thay was working is automatilly redirecting to /, when the actual path is /something-else?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.