Hi All,

I have a WordPress installation at the following:

http://www.domain.com/wordpress/

However I need some help...
When a use goes to http://www.domain.com I want it to redirect to http://www.domain.com/wordpress/ however I want to hide the /wordpress/ so the user only sees http://www.domain.com

But it still needs to work with links such as
http://www.domain.com/wordpress/2012/05/pagetitle/

Can anyone help me if it can even be done!

Dan

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');
?>

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

try RewriteBase as

RewriteBase /wordpress/

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.