Welcome Guest, Not a member yet? Register   Sign In
Unable to remove "public" and "inde.php" from url in wampserver
#5

On Windows I have to add this to my .htaccess file for it to work.

Code:
# Remove index.php from URL
RewriteCond %{HTTP:X-Requested-With}    !^XMLHttpRequest$
RewriteCond %{THE_REQUEST}              ^[^/]*/index\.php [NC]
RewriteRule ^index\.php(.*)$            $1 [R=301,NS,L]
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Unable to remove "public" and "inde.php" from url in wampserver - by InsiteFX - 04-27-2023, 11:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB