I’m building a WP blog around an existing website.
The previous website still needs to exist at index.php the blog section exists in the same folder but at news.php
I’ve installed wordpress and then overwritten the wordpress index with the old websites index.
However whenever links are generated for individual posts for example…
<?php wp_get_archives('title_li=&type=postbypost&limit=10'); ?>
I’m redirected to the index.
How can I change the WordPress settings so that news.php
can be my index and index.php
remain outside of the WP system.
Here are some advises.
Rather than trying to get a hold of main index file, install wordpress in a sub directory, news/. After that you can change WP Admin->Settings->General: WordPress Address and Site Address.
Move your current index.php to home.php. And then URL-rewrite all index.php calls without the presences of ?p to home.php
edit .htaccess and change
RewriteRule . /index.php [L] to
RewriteRule . /news.php [L]
let me know if that works