Level 75
@ranggalr Just create .htaccess file to the root and add these lines to it.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public_url/ [L]
</IfModule>
Is it happend only on index method?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, i wanna ask how to properly remove public url from shared hosting? because i already use the .htaccess method and still when i use Route::resource the index function still using public url.
@ranggalr Just create .htaccess file to the root and add these lines to it.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public_url/ [L]
</IfModule>
Is it happend only on index method?
Please or to participate in this conversation.