Problem with URL's - only "home page" route working on live

Igor posted 7 months ago

Hi guys, i need help with URLs on server...

example: -- work - dont work - work

The main problem is, if I click something on the page, for example ‘login’ it’s directed, instead of

In httpd.conf file i allowoverrired all:

<Directory />
Options Indexes FollowSymLinks
    AllowOverride all
    Require all granted

this is my htaccess file:

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>     Options -MultiViews -Indexes
RewriteEngine On
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ / [L,R=301]
RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/ [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(css|js|images)/(.*)$ public// [L,NC]

Aiden Andrews-McDermott replied 7 months ago

Please, can you post your views code it may not be Apache doing it unless we have an all-round view of each component it's very difficult to diagnose?

Igor replied 7 months ago

I solved the problem ... In the localhost links works ok, example: <a href=/login> , but over the remote server this slash line deletes the folder name (name of aplication). So i put it all links {{url('something')}} and now it's ok ... thanks anyway ;)

Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us