PDA

View Full Version : My Index Page


The Scribe
10-20-2004, 12:29 AM
I realise that I probably made a mistake when I installed WordPress but my url is:

http://thescribe.hostmatrix.org/wordpress/

instead of:

http://thescribe.hostmatrix.org

I don't want to do anything else to the site until I get this sorted out because I might have to start again.

Is there an easy way that I can move the files so that I get the correct url? Is it possible? Can someone please help me?

Akallen
10-20-2004, 01:27 AM
yes there is, you can mass move your folder.... or get a redirector... ummm.... I think those are the only two choices.

The Scribe
10-20-2004, 01:31 AM
Is WordPress considered a database? Is that why this has happened?

Maybe I need to come up with a good index page. I didn't really want to do that though, it sort of defeats the purpose.

Akallen
10-20-2004, 01:34 AM
can you clairify that?

The Scribe
10-20-2004, 01:49 AM
Well, I could code a HTML page that sits on http://thescribe.hostmatrix.org and points to WordPress, but I'd prefer my blog (WordPress) to be there instead.

I might have to try moving the folders but I'm scared I'll loose everything and wanted to ask you guys what to do before I tried doing that.

oblivious
10-20-2004, 03:09 AM
look in the PHP thread and look for a redirector... I know they have talked about it already... but I can't remember the actual code... :D That's all I can help you with :D

wildfire
10-20-2004, 07:17 AM
It is kinda gay how you cant install the Scripts in the library to the root folder. What I did and I suggest you do is simply copy all of the files from your /wordpress folder to your root folder. Warning** you may need to change some settings for this to work. Usually php programs are designed to run from a root folder where they are installed and don't care what that root folder is. So it should in theory work the same no matter where it is, as long as the file structure remains the same. However, sometimes the database links to a certain folder, so you may ned to change some settings that way. Once again, I suggest phpNuke if you only have one database, because you can get modules for anything, such as Worpress, which run off of the same database. Good Luck, ask if you need anything else.

Terminator
10-20-2004, 08:42 AM
Oh no no no,

Don't worry guys while Terminator is around. Then whats the purpose of me here, eh?

So just relax and do what i say.

You remove the current wordpress installation. Its easy to do, rt?

Then go to your filemanager and delete the entire public_html folder. dont worry.

So now you are left with no home. Just go to the script library and install it to yourdomain/ not to yourdomain/directory/

The installation will automatically create a public_html folder and wordpress will be your home page then.

Or else you can get an auto redirect page, I will help you there, and put that as your index.php in public_html folder. It will automatically redirect your visitors with out even them noticing it.

copy the following code to a file and name it index.php and put the file in your public_html folder.


<?php
Header("Location: http://thescribe.hostmatrix.org/wordpress/");
?>


So happy, eh?

There are always more than one way to do stuffs in computer. So dont say, we cant do it. Always we can.

Thankyou.

The Scribe
10-20-2004, 10:16 AM
Originally posted by Terminator@Oct 20 2004, 05:42 PM
copy the following code to a file and name it index.php and put the file in your public_html folder.


<?php
Header("Location: http://thescribe.hostmatrix.org/wordpress/");
?>




Terminator, do I just have that saved as a php document or do I need all the other normal coding (eg html, body, /body, /html)?

The Scribe
10-20-2004, 10:20 AM
Originally posted by wildfire@Oct 20 2004, 04:17 PM
Once again, I suggest phpNuke if you only have one database, because you can get modules for anything, such as Worpress, which run off of the same database. Good Luck, ask if you need anything else.



<gets excited>

You mean, I can still use WordPress with PHPNuke? Now, you're catching my attention! I like the sound of that.

I'm so tempted to give PHPNuke a try.

Wildfire, when you said you copied the file to the root directory - do you mean you put the whole folder there or all the files inside the folder?

I'm sorry to keep asking questions, but it's the only way I'm going to learn what to do.

Terminator
10-20-2004, 03:16 PM
Word Press cant run along with php nuke. (I know it can by database table prefixing. Bit complex to explain.) so better stay with your wordpress.

you just need to copy that code and save it as index.php and put it in the public_html.

No need for any extra tags or extra stuff. That code alone will do the job.

The Scribe
10-21-2004, 01:15 AM
I found out that WordPress doesn't work with PHPNuke. I'm still trying to decide which way to go with my site. If I got back to my original plan I'll be needing that coding. Thanks, Terminator.

I tried it yesterday (when I still had WordPress installed) but I had the document in the wrong place. No wonder it didn't work. :unsure:

wildfire
10-21-2004, 02:23 AM
Terminator is right, you can't run wordpress in a module for phpNuke, it wouldn't make much sense either. Sorry for the misadvice The Scribe. Also, Terminator's advice about deleting your public_html folder sounds really interesting... I would never have thought of that, I will have to try it sometime. Also, for the record, I copied the contents of my phpNuke folder to my root folder (public_html) to get it to work for me. But I would suggest using Terminator's methid if it works, it seems much cleaner. Also, phpNuke is more of a multi-user thing and WordPress, from what I understand, is more of a single user (author) web-blog. Thus, if you are trying to do what I think you are, then i would suggest using Termiator's method to install WordPress, and use that instead of phpNuke. Also for the record, I think that it is possible to run both WordPress and phpNuke out of the same database, just using different tables, and probably tweaking a few settings in one or the other of the programs, but I would suggest just posting 50 and getting the upgrade if you want to use other databases. Thanks for covering my butt, Terminator ^^

The Scribe
10-21-2004, 04:37 AM
Originally posted by wildfire@Oct 21 2004, 11:23 AM
Also, Terminator's advice about deleting your public_html folder sounds really interesting... I would never have thought of that, I will have to try it sometime.
2228



I tried this (I deleted the public_html folder containing WordPress) and unless the user knows a bit about directories, they could run into trouble because when I tried to install PHPNuke I kept getting errors. Installing doesn't automatically create the folder (or it didn't for me, anyway).

In the end, I opened my ftp and went in and created the public_html folder manually and then the program installed properly.

So... I would say be careful! Only delete the folder if you know how to create it again manually.

onefatman
10-22-2004, 03:22 AM
i put an index.html file in my public_folder that says "coming soon", do i need to put a redirect to it or am i doing something wrong because it wont go to it when i type in "bigsmacks.hostmatrix.org". am i incredibly stupid??? go easy on me im new to this

The Scribe
10-22-2004, 04:34 AM
Are you sure it's in you public_html folder and not the public_ftp folder? Also, it should be any other folder that may be in the public_html folder either. Lastly, check to make sure you have named it index.html and that the spelling is correct.

That's all I can suggest, for now. If I think of anything else, I'll post again.

Terminator
10-22-2004, 07:54 AM
Delete public_html folder only if you are installing a script from the scripts library in the Cpanel. Very bad point to miss. I am sorry.

And when the installation script asks for the folder to install just put a / there and public_html will be created automatically.

Thank you.