Jump to content

stop domain.com/index.php from redirecting to domain.com?


phil_s
 Share

Recommended Posts

Hi folks,

I have a PW site set up in the root of a domain, (reachable via domain.com/index.php, and domain.com/pw), with an static index.html and respective directory index entry in .htaccess added (DirectoryIndex index.html index.php ), since the site is still in development.

Now, suddenly, this is not working anymore, entering domain.com/index.php redirects to the root (and thus the .html), although I can still reach domain.com/pw just fine!

I had a look at the htaccess changes since I recently updated from 2.x to 3.0.6, including .htaccess, but there didn't seem to be any difference (not counting the added directory index entry of course) to the old, working htaccess.

Can anybody share any clue on what might be off here?

Cheers guys!

Phil

Link to comment
Share on other sites

edit u. index.php file 

+  add 2 top on.line afters namespace

$_SERVER['REQUEST_URI']=str_replace('index.php','',$_SERVER['REQUEST_URI']); 

when.u no needs index.html no more rember to deletex that ok

Haha, nice... : D

Brilliant! Works! Thanks a bunch!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...