Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

Did you upload the .htaccess from your dev environment? Can you show us what you got? Does index.php/users work?

0

Thank you for reply.

Yeah i uploaded .htaccess file to server. Here is my .htaccess content.

<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>
  • Yes index.php/users is woking. So is there any way, So i can remove this index.php from URL and it works like index.php/users.
Last updated 9 years ago.
0

What I have to rewrite index.php:

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
#Submitted by Michael Radlmaier (mradlmaier)
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
0

@beaverusiv

It's working. Thank you so much.

0

@beaverusiv

Is there any way to make it work like just /users.

0

It should. How is it not? This is solved, so make another post.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Sikandhar sikandhar Joined 18 Jun 2014

Moderators

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

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.