Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Can't Re-direct
Striker9099
post Jul 12 2007, 09:22 AM
Post #1


Member [Level 2]
*****

Group: Members
Posts: 79
Joined: 30-June 07
Member No.: 45,745



Hey everybody, well I just got a simple problem with redirecting the site. well I just can't redirect www.thedebate.trap17.com to www.thedebate.trap17.com/Joomla well I used the "Manage Redirects" tool in the cPanel but it didn't work. Everytime I try doing it, it gives me this:

QUOTE
Manage Redirects

Redirecting / to http://thedebate.trap17.com/Joomla will cause a redirection loop because '/'

which is located at /home/striker/public_html/

is above 'http://thedebate.trap17.com/Joomla'

which is located at /home/striker/public_html/Joomla

Added Redirect!
http://thedebate.trap17.com/ >> http://thedebate.trap17.com/Joomla


so what am I doing wrong? and what am I supposed to do to make it work?
Go to the top of the page
 
+Quote Post
Saint_Michael
post Jul 12 2007, 10:28 AM
Post #2


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,561
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



Hmm... I have no idea I have tried different ways to try and produce the error, but with no results. I would have to say it is a fluke at the time, but you mention this has happen multiple times and you still produce the error. Nothing really comes to mind as to why it would do this unless I am missing something in the url or how you type the url into the redirect panel.
Go to the top of the page
 
+Quote Post
Striker9099
post Jul 12 2007, 10:52 AM
Post #3


Member [Level 2]
*****

Group: Members
Posts: 79
Joined: 30-June 07
Member No.: 45,745



QUOTE(Saint_Michael @ Jul 12 2007, 10:28 AM) *
Hmm... I have no idea I have tried different ways to try and produce the error, but with no results. I would have to say it is a fluke at the time, but you mention this has happen multiple times and you still produce the error. Nothing really comes to mind as to why it would do this unless I am missing something in the url or how you type the url into the redirect panel.


Well I don't know what I did wrong, but if you check the "Manage Redirects" tool, you'll see something like this:

http://yourdomain.com/text box >> http:// text box

well I tried to leave the first text box empty and then fill the other one with "thedebate.trap17.com/Joomla" and it didn't work. Then I tried to fill the first text box with "public_html" and then fill the other one with "thedebate.trap17.com/public_html/Joomla" and it still didn't work... so can you tell me what's wrong and what should I do to make it work?
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Jul 12 2007, 05:40 PM
Post #4


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,492
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



I believe you cannot redirect home page to another subfolder due to some permission (which I have no idea since cPanel is still new to me).

The quick fix is to write your own redirect script.

PHP index.php in public_html
QUOTE
<?php
header("Location:http://www.yourdomain.ext/folder(or file)"); /* Redirect browser to any location*/
exit;
?>

The above code will redirect to any location you choose in domain or domain/folder, in your case just Joomla will do.

HTML index.htm(l) in public_html
HTML
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=Joomla/">

You can insert a message like "You're being redirected to this page..." while the number 5 (measurements in seconds) dictates how long before it redirects. Obviously you can set to zero without any message. To show a message or a splash screen, build a regular HTML page with BODY and etc tag.

Another option is to use .htaccess (which your cpanel's redirect modifies) but it's bit tricky. And that's why I propose above two options.
Go to the top of the page
 
+Quote Post
Striker9099
post Jul 12 2007, 08:40 PM
Post #5


Member [Level 2]
*****

Group: Members
Posts: 79
Joined: 30-June 07
Member No.: 45,745



QUOTE(BuffaloHELP @ Jul 12 2007, 05:40 PM) *
I believe you cannot redirect home page to another subfolder due to some permission (which I have no idea since cPanel is still new to me).

The quick fix is to write your own redirect script.

PHP index.php in public_html

The above code will redirect to any location you choose in domain or domain/folder, in your case just Joomla will do.

HTML index.htm(l) in public_html
HTML
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=Joomla/">

You can insert a message like "You're being redirected to this page..." while the number 5 (measurements in seconds) dictates how long before it redirects. Obviously you can set to zero without any message. To show a message or a splash screen, build a regular HTML page with BODY and etc tag.

Another option is to use .htaccess (which your cpanel's redirect modifies) but it's bit tricky. And that's why I propose above two options.



Thanks alot for the help man! I tried so many things to make it work but it didn't work! now I'm gonna try the first method you provided. and by the way, on my old host which had the old cPanel I used to redirect very easily but I don't know what's wrong with this new cPanel. it sucks! first the problem with fantastico and now the redirection problem! the coders better start taking care of their production!

damn! it didn't work! :S ok here's what I did. I put this code in a file named "index.php"

QUOTE
<?php
header("Location:http://www.thedebate.trap17.com/Joomla"); /* Redirect browser to any location*/
exit;
?>

then I uploaded to public_html. but it didn't work :S isn't this what I am supposed to do?

Notice from BuffaloHELP:
Merged. Always use EDIT unless your post is not the last reply.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Jul 13 2007, 12:06 AM
Post #6


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,492
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



LOL

Sorry, I didn't mean to laugh but did you open a notepad to create this file?

Try again because I can see the "code" which means it wasn't saved as a right type.

Open Notepad
Enter PHP code I gave
Save As, then select Save As Type to All Files
Then type index.php

This is the only way of creating .php without any special software.

Let me know if you are still having the problem I'll send you mine. I've tested out and it's working just fine.
Go to the top of the page
 
+Quote Post
Saint_Michael
post Jul 13 2007, 01:07 AM
Post #7


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,561
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



After I let it stew for awhile I remember a redirecting post on astahost in which I had to install joomla and then set up a redirection to show someone how it was done. I don't remember having any problems on the permission files, but it was a pre-install script so it wouldn't have matter anyways. I know you can redirect to another sub folder with no problems I have done it hundreds of times, but a question does come out though striker why didn't you just install joomla on your main folder instead of creating a sub folder for it? It would make more sense especially on the SEO side; but to make sure go over the installation read me again and check to make sure your file permissions are correct as buff said it could be the problem.
Go to the top of the page
 
+Quote Post
Striker9099
post Jul 13 2007, 11:03 PM
Post #8


Member [Level 2]
*****

Group: Members
Posts: 79
Joined: 30-June 07
Member No.: 45,745



QUOTE
LOL

Sorry, I didn't mean to laugh but did you open a notepad to create this file?

Try again because I can see the "code" which means it wasn't saved as a right type.

Open Notepad
Enter PHP code I gave
Save As, then select Save As Type to All Files
Then type index.php

This is the only way of creating .php without any special software.

Let me know if you are still having the problem I'll send you mine. I've tested out and it's working just fine.
well actually I used Microsoft Share Point but it also didn't include the .php extension, so then after I saved the file I changed its extension biggrin.gif now I'll try to do what you said and I'll see what will happen.

QUOTE
After I let it stew for awhile I remember a redirecting post on astahost in which I had to install joomla and then set up a redirection to show someone how it was done. I don't remember having any problems on the permission files, but it was a pre-install script so it wouldn't have matter anyways. I know you can redirect to another sub folder with no problems I have done it hundreds of times, but a question does come out though striker why didn't you just install joomla on your main folder instead of creating a sub folder for it? It would make more sense especially on the SEO side; but to make sure go over the installation read me again and check to make sure your file permissions are correct as buff said it could be the problem.


well actually I was installing it on my main directory first but then I had one problem... while installing when they give me the list of the writable files there's one that was saying "unwritable" and it is something like "Session save path" check this out. so then I deleted all the files related to Joomla and tried to re-install it in a sub-directory hoping that this problem would be solved but it didn't :S and I completed the whole installation while this "Session save path" was still marked Unwritable. so do u think this is the problem? and what is this "session save path" anyway?
QUOTE
UPDATE REPORT
YES! it worked! thanks alot for the help smile.gif and by the way, I have another question... does Trap17 support Java? well I'm asking because I was trying to integrate a chatroom from userplane into Joomla and it didn't work. it just kept giving me a blank small rectangle in the middle of the content area. well a friend of mine told me that this could be due to the fact that the userplane webchat is made in Java... so what do you think?

Notice from BuffaloHELP:
This is your last warning. We enabled EDIT feature so that you do not need to double post! Merged.


QUOTE
So what did you do to fix the problem you were having so other people who "might" have a similar problems in the future. The only conclusion I can draw from was that you set the correct permissions somewhere, but that is only a guess, but instead of making a new post just edit the one with the update you made with the solution you came up with or what was fixed.


well what I did is that I did what BuffaloHELP told me to do (open notepade, copy the code, save as .php file) then I uploaded this file to my root directory and HAD TO delete the index.html file so that it would actually work. (first I didn't delete the index.html file so it didn't work)

This post has been edited by Striker9099: Jul 14 2007, 12:27 PM
Go to the top of the page