http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
have you read this?
after moving index.php you need to edit it as well
as far as .htaccess, if you didn’t have one, you may not need one. WP automatically generates it when you set up pretty permalinks. If you didn’t do that, no worries
Hi RVoodoo thank you for the response… I had checked this out before just been confused on the steps I would have to do or not have to do.
when you say edit the index.php files do you mean this below: The only thing is in my index file I don’t have this line of code in it so should I place it manually in there? and if so where would I place it currently my index.php file looks something like this
<?php get_header(); ?>
followed by my content and some tags. should I manually place
require(‘./wordpress/wp-blog-header.php’); after the get header script.
# Open your root directory’s index.php file in a text editor
# 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 WordPress core files: require(‘./wordpress/wp-blog-header.php’);
# Login to the new location.
It might now be http://example.com/wordpress/wp-admin/
Thanks again for the assistance.
what index.php is that? that is one from your theme, that’s not the correct index.php
when you installed wordpress, in the folder you installed it into you should have a bunch of files like wp-config.php, wp-cron.php, wp-blog-header.php and in that folder you should have an index.php that includes this
<?php
/**
* Front to the WordPress application. This file doesn’t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define(‘WP_USE_THEMES’, true);
/** Loads the WordPress Environment and Template */
require(‘./wordpress/wp-blog-header.php’);
?>
it seems you’ve gotten confused and are using the wrong index.php file
@rvoodoo,
When I downloaded wordpress to my host server and all the files were placed I began following some tuts from Nettus to create WordPress Design from scratch… I created a new folder in my theme folder and placed or created new files in there which hold all my info for the pages. I started in HTML first and then broke everything up to their respective php files such as an index, header( which has a lot of the main info. here is what it looks like
the index.php file
[Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as http://wordpress.pastebin.com. Thanks!
(not germane to the discussion either)]
I did find the index.php file you mentioned when I open the worpress folder.. the one that I thought they were talking about is the one referenced above which is located in my /themes/newtheme folder.
So that should be the index file that should be edited?
the one you listed above was in the right place, when it was in a theme folder.
You don’t do anything with it to move wordpress
The one I showed you above is the one you place in your root directory and edit
Hey RVoodoo everything worked well thanks for the assistance, I really appreciate it. If its not too much trouble I wanted to find out: would you know how to change the link paths which display in the url when you click on certain tabs/links on the site? For instance when I click on say the personal link it will take me to the page with the url listed – randyniles.com/wordpress/?page_id=36
how could I change this to reflect say just the name of the pages rather than the id’s and cat#’s… Can this be done with cat as well?
Thank you again.
thats done in your admin area
settings->permalinks
when you set that up, that is when the .htaccess file we were discussing earlier will automatically be generated
I’m honestly not sure what all variables you can set up with the permalinks. You may have to play around or do a bit more research….I’ve never really gone too in depth with permalinks
Thanks RVoodoo I appreciate it I’ll do some research on it.
Be well.
I followed these instructions and its not working for me. Is there any instructions under windows?
I changed WordPress address (URL), to just example.com, and moved the index.php into C:\Inetpub\wwwroot
but still when I go to my browser, and I just type example.com still doesnt work (page under construction)
any ideas? what am I doing wrong?