Jump to content

Redirecting /index.php to root but NOT other subpages


mm

Recommended Posts

Hi,

I am redirecting  /index.php to the root using :

RewriteCond %{THE_REQUEST} ^.*/index\.php

RewriteRule ^(.*)index\.php$ /$1 [R=301]

 

The problem is that all the other pages are missing "index.php" in the url.

How can I redirect ONLY /index.php and keep all the other subpages with the full url ( ex: www.domain.com/index.php?page=blabla...)

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.