Welcome Guest, Not a member yet? Register   Sign In
request URL not found
#4

(This post was last modified: 04-30-2024, 02:00 AM by jcarvalho.)

(04-29-2024, 05:16 PM)mywebmanavgat Wrote: mainPath .htaccess

RewriteEngine On

RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC]
RewriteRule ^ %1 [L,NE,R=302]

RewriteRule ^((?!public/).*)$ public/$1 [L,NC]

public path in .htaccess
.htaccess

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]
Hi! Thank you for this tips but didnt work. Same problem

(04-29-2024, 05:38 PM)kenjis Wrote: I recommend to read the official documentation:
https://codeigniter4.github.io/CodeIgnit...ith-apache

Hi Sir, thanks for the reply but I got those .htaccess fragments from the official documentation, because they didnt work, I posted my problem here to see if someone could help me out. I dont know much about Apache, just basic stuff. I just copy and pasted code from documentation
Reply


Messages In This Thread
request URL not found - by jcarvalho - 04-29-2024, 03:52 PM
RE: request URL not found - by mywebmanavgat - 04-29-2024, 05:16 PM
RE: request URL not found - by jcarvalho - 04-30-2024, 01:57 AM
RE: request URL not found - by kenjis - 04-29-2024, 05:38 PM
RE: request URL not found - by xsPurX - 04-30-2024, 05:46 AM
RE: request URL not found - by kenjis - 04-30-2024, 07:11 PM
RE: request URL not found - by captain-sensible - 05-01-2024, 09:04 AM
RE: request URL not found - by jcarvalho - 05-03-2024, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB