tags:

views:

25

answers:

1

I have already a site with a single homepage index.php which accepts 2 parameters like

http://mydomain.com/index.php?param1=something&param2=somethingelse

param2 can be optional

I want to install wordpress on the root directory, except for index.php and the above url, I want wordpress to show the blog pages.

How to do that either in PHP and/or htaccess ? (I'm very bad at htaccess so I prefer php).

+1  A: 

You can follow this approach: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory and then merge the functionality of your existing index.php with Wordpress' index.php (your custom parameter handling etc). Or should your current index.php be completely different?

david
That's a good idea, will try.