Jump to content

Recommended Posts

Posted

Hi, I'm hosting a CodeIgniter 4 app on my domain.
Could you please:

  • Enable mod_rewrite for my domain?

  • Allow .htaccess overrides (AllowOverride All)?

  • Confirm that Rewrite rules in .htaccess will work inside httpdocs/?

I'm trying to remove index.php from URLs but it only works when I include it

i want to access my subdomain https://vims.bharat.hacked.us/abc but its not working  https://vims.bharat.hacked.us/index.php/abc is working pls help me

Posted

Try moving the code into a subfolder (e.g. make it vims.bharat.hacked.us/ci4/). The root of a domain can be...special. All domains support mod_rewrite by default, no need to request it or anything.

These are the Apache directives applied to a domain root by default, so yes AllowOverride is set to All (and directory listings are enabled by default):

<Location />
	Options +Indexes
	AllowOverride All
</Location>

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...