How to remove index.php from the middle of URL Dreamhost

  1. I want to remove index.php from the middle of the URL.
  2. I am using Dreamhost Webhosting.
  3. And Believe me, Dreamhost Webhosting configuration is very different from others.
  4. Normal Webhosting configuration is not working in Dreamhost.

Please note: Below is an adult website link & you must be 18+ to view its content.

*Here is the problem I am facing:

PROBLEM 1
The link below:
https://www.mumbaibeautiess.com/index.php/gallery

Should redirect to:
https://www.mumbaibeautiess.com/gallery

I NEED THE HTACCESS CODE TO FIX THIS PROBLEM.

Thankyou

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php/$1 [L]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.