5
Contributors
4
Replies
9
Views
5 Years
Discussion Span
Last Post by Beattle55
1

I have a site that does exactly this.

.htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

./index.php

<?php
/** Tells WordPress to load the WordPress theme and output it. */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wordpress/wp-blog-header.php');
?>
0

Why don't you simply install WordPress in your root domain or public_html folder?
SEO will be much simpler and your page titles will be www.domain.com/page_title
You can set the permalinks for your posts to year/month/title

1

If you go to the settings / general tab, you will see the field Wordpress address (URL). It should be domain.com/wordpress on your site. The next field is labeled Site address (URL). Change that to domain.com and the Wordpress software will create the re-write rules in htaccess for you. Your website would then be accessed at http://domain.com/
I think you would have to write re-directs for all your existing pages and posts to access them using the old address.

You can then use the permalinks to style your page/post urls any way you want. I usually use domain.com/somepage.html by selecting custom and putting /%postname%.html in the permalinks field.

Edited by Beattle55: more info

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.