homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Converting Live Site to WP: Need .htaccess help

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

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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved