Catégorie WebDev

Wordpress en dossier root

6 jan 2007 Classé dans : WebDev

Giving its Own Directory While Leaving Your Blog in the Root Directory

Many people want to power their site's root (e.g. http://example.com) but they don't want all of the WordPress files cluttering up their root directory. WordPress allows you to install the files to a subdirectory, but have your blog exist in the site root.

The process to move into its own directory is as follows:

  1. Create the new location for the core files to be stored (we will use / in our examples).
  2. Go to the Options panel.
  3. In the box for WordPress address (URL): change the address to the new location of your main core files. Example: http://example.com/
  4. In the box for Blog address (URL): change the address to the root directory's URL. Example: http://example.com
  5. Click Update Options.
  6. Move your WordPress core files to the new location ( address).
  7. Copy the index.php and .htaccess files from the directory into the root directory of your site (Blog address).
  8. Open your root directory's index.php file in a text editor
  9. Change the following and save the file. Change the line that says:
    require('./wp-blog-header.php');
    to the following, using your directory name for the core files:
    require('.//wp-blog-header.php');
  10. Login to the new location. It might now be http://example.com//wp-admin/
  11. If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. will automatically update your .htaccess file if it has the appropriate file permissions. If can't write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

Caracteres spéciaux en HTML

6 déc 2006 Classé dans : WebDev

tableau récapitulatif

Lire la suite »

A Propos

Portfolio en flash disponible
pour ceux de plus en plus nombreux ayant accès par leurs mobiles à Internet, une version « mobile friendly » est disponible.
Si vous aviez des difficultés, merci de me le signaler et en me mentionnant l’appareil avec lequel vous avez des difficultés.


contact: onozen[at]gmail.com

Recent Comments

  • sasenlarose: merci pour ce magnifique thème ;)
  • roberto: WOW! Thank you very much. It’s...
  • youness: ca march plus pour Moi :s
  • Tom: Tres beau thème … il ne manque...
  • claude: bonjour le thème est t’il...

My Flickr

  • [NeurolaB] KomBi-X1 HELMET V1.0 BLUE
  • [NeurolaB] KomBi-X1 Cyberglass
  • neurolab-heart-pulse-v2
  • neurolab-x1boots
  • neurolab-x1belt
  • croma_jante001
  • croma_arr002
  • croma_av002