Welcome Guest, Not a member yet? Register   Sign In
Remove /public from URLs
#6

(02-15-2022, 12:40 AM)luckmoshy Wrote: I don't know why many people suggest removing index from public to outside that is not the right way only .htaccess can work for Appache here you go don't touch anything just copy this to .htaccess game over (here we have hidden public folder with.htaccess)
Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC]
RewriteRule ^ %1 [L,NE,R=302]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]

then go to App/config/app just remove (index.php) to the plain game over enjoy your c_i 4+ whether local or on live server
its not working for 4.4.3 version can you suggest ant thing
Reply


Messages In This Thread
Remove /public from URLs - by andreshume - 02-14-2022, 02:01 PM
RE: Remove /public from URLs - by demyr - 02-15-2022, 12:27 AM
RE: Remove /public from URLs - by luckmoshy - 02-15-2022, 12:40 AM
RE: Remove /public from URLs - by pippuccio76 - 02-15-2022, 12:43 PM
RE: Remove /public from URLs - by luckmoshy - 02-15-2022, 09:07 PM
RE: Remove /public from URLs - by veeranji - 12-08-2023, 05:40 AM
RE: Remove /public from URLs - by ozornick - 12-09-2023, 02:33 AM
RE: Remove /public from URLs - by InsiteFX - 12-09-2023, 11:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB