Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Converting Live Site to WP: Need .htaccess help



6:24 pm on Aug 22, 2011 (gmt 0)

5+ Year Member

I have a live site running that will soon be converted to a wordpress site. At this time SEO isn't important.

Here is what I had: www.site.com/index.php

Now it is here: www.site.com/sub/somename.php
I have the .htaccess working correctly for this.

The problem that I am having is in the ROOT (www.site.com) I have wordpress installed but if I go to www.site.com/index.php (which should be wordpress) it kicks me over to www.site.com/sub/somename.php

So long story short...

If someone types:
I need it to redirect to:

If someone types:
I need it to go to that actual page (which would be the wordpress install).

How do I do this?

Thanks for any and all help!


6:52 pm on Aug 23, 2011 (gmt 0)

5+ Year Member

I fixed it by creating a separate page that only I can get to, to set and destroy a cookie. then in the header.php of the WP file I check that cookie and determine where to go.

Featured Threads

Hot Threads This Week

Hot Threads This Month