Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: When I type in my web address, why am I not going directly to my website?

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45386

  • stjohn
  • stjohn's Avatar
  • OFFLINE
  • OSTarlet
  • Posts: 53
  • Karma: 0
When I type in the name of my site and press enter, I'm taken to a blank white page with Index of/ written in bold in the upper left hand corner. Below in bullet points is cgi-bin/ and home/(this is what I named my site) and the third bullet point is pubic ftp/. Why is this not going directly into the site? Why do I have to click home/ to get me there?

thanks,

John
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45389

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3944
  • Thank you received: 133
  • Karma: 9
Hi John and welcome to OSTraining! :-)

Do you have a link to your site so we can take a quick look?
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45415

  • stjohn
  • stjohn's Avatar
  • OFFLINE
  • OSTarlet
  • Posts: 53
  • Karma: 0
Hello Tessa,

The website is: www.sportingtimesmagazine.com

thanks,
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45418

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3944
  • Thank you received: 133
  • Karma: 9
Hi Stjohn,

I see what the issue is. You need to have it automatically redirect to /times instead of the root folder.

Here is what you can do.

Create an .htaccess file in your Joomla root directory:
[code
# Turn on rewrites.
RewriteEngine on

# Only apply to URLs on this domain
RewriteCond %{HTTP_HOST} ^(www.)?sportingtimesmagazine.com$

# Only apply to URLs that aren't already under folder.
RewriteCond %{REQUEST_URI} !^/times/

# Don't apply to URLs that go to existing files or folders.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all those to insert /folder.
RewriteRule ^(.*)$ /times/$1

# Also redirect the root folder.
RewriteCond %{HTTP_HOST} ^(www.)?sportingtimesmagazine.com$
RewriteRule ^(/)?$ times/index.php [L][
[/code]

Also go to your configuration file and change this:
$live_site = 'sportingtimesmagazine.whatever/times';

To this:
$live_site = 'sportingtimesmagazine.times';

Please backup your site and backup these files before making these changes.
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45419

  • stjohn
  • stjohn's Avatar
  • OFFLINE
  • OSTarlet
  • Posts: 53
  • Karma: 0
Tessa,

I appreciate the quick response. I'm very impressed with your reply and completely lost at the same time. I'm using Drupal, so do I even have a Joomla root Directory? If so, how do I access it? If you havn't already guessed, I am currently taking the beginners course on Drupal. If you could speak a little more caveman I would appreciate it.

thanks again,

John
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45422

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3944
  • Thank you received: 133
  • Karma: 9
Hi Stjohn,

I apologize for posting on the wrong section. I usually live on the Joomla side of things.

But with redirecting your site, Joomla is pretty similar with Drupal. You could use the same code within the same .htaccess file, but instead of configuration.php, you'd be editing your settings.php file.

Check out this page here:
drupal.org/node/796264

There is a solution for you. :-)
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45423

  • jmc
  • jmc's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 1382
  • Thank you received: 108
  • Karma: 8
Good morning John
I think that all your drupal files have ended up is a directory called "times" by mistake.
The url www.sportingtimesmagazine.com/times/ will take you to your site.
It is as though all your drupal files have been placed in a "paper bag" on the server, we just need to get rid of the "wrapping paper" to gain access.
Do you use ftp or the cpanel to connect with your server?
Probably the simplest solution (if this is a new installation) is to install drupal again into the correct directory; and leave the one installed in "times" as a development site.
Regards
Mark
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45502

  • stjohn
  • stjohn's Avatar
  • OFFLINE
  • OSTarlet
  • Posts: 53
  • Karma: 0
I've removed drupal 3 times already. Each time I get the same result. I used green geeks as a host and went through the easy install the first two times with softalicious. I removed drupal and after watching the video tutorials I did the one click install using fantastico. I got the same result. Should I contact my host provider?

thanks,
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45507

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi John,

Mark is correct, you just have it installed in the wrong directory. You could move it just by copying the entire contents of that folder to the public_html folder and that will work. But it sounds like you've got some complications from deleting previous versions, so it might be better if you back up a step.

You won't be able to do a clean install to your home directory because you still have the drupal sites folder there. This is really perplexing to new users because you click delete and it won't go away.

Here are some directions for getting rid of that folder

www.ostraining.com/blog/drupal/how-to-delete-the-drupal-sites/

If that's more than you need to know. Just ask your host to delete the sites folder from the home directory. You could leave the install in the times directory if you want to use as a test site. But if you go to delete it, you'll have to delete the sites folder there as well.

Now reinstall drupal, but this time, watch the whichever one-click installer you use. While you're going through the prompts, it will ask you which folder you want to install drupal, and it will probably be automatically filled in for you with: www.sportingtimesmagazine.com/drupal.

When you did the first instally you most likely replaced drupal with times. This time, delete drupal and leave that part blank so that it only says www.sportingtimesmagazine.com/

That will give you a clean insallation of drupal in your home directory and it will work the way you want. If you delete it again, and want to start over, just remember to delete the sites file manually or with the help of your hosting company.

Let us know if that helps you out.

Cheers,
Ed

PS. The more trouble you have now, the easier it is in the future. Keep plugging at it! And keep asking questions.
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45514

  • stjohn
  • stjohn's Avatar
  • OFFLINE
  • OSTarlet
  • Posts: 53
  • Karma: 0
Hey! Progress! Thanks so much everyone. It worked. You haven't heard the last of me. Thanks again.
Please become a member of OSTraining to reply to this post.

When I type in my web address, why am I not going directly to my website? 1 year 1 week ago #45532

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16726
  • Thank you received: 371
  • Karma: 54
Hi and welcome, John!

We're glad to be help and even more glad that you got things working! Congrats! :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.
  • Page:
  • 1

Sign Up for OSTraining

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.