Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: URL has a sub-directory in it that we want to get rid of

URL has a sub-directory in it that we want to get rid of 1 year 1 month ago #43911

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
Hey guys - Nick, you asked me to open up a new forum post since the other one was so cluttered...so here we go :)

YOU WANTED ME TO FIND THIS INFO:

(1) Check to see what you have for your configuration.php's var live site. Is it blank or do you have something set in there?

(2) Also, check to see what you have for RewriteBase / in your .htaccess file.

HERE'S THE ISSUE AT HAND:

When you go to www.davewilliams.com/ - all is well. But the moment you click on any of the pages...it adds a /davewilliams/ subdirectory in there.

I haven't put the files in a subdirectory. It's just how the web host has it set up...because my client has a bunch of multiple sites...and they have a subdirectory for each site on the one account. Does that make sense?

However...my client doesn't want the /davewilliams/ to show up in the URL.

Thoughts on how I can get it go away?? :)

Anita
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 1 month ago #43912

  • tessa
  • tessa's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 3950
  • Thank you received: 134
  • Karma: 9
Hello Heart0,

Is this something you were looking for?

www.webmasterworld.com/apache/4268733.htm
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.

URL has a sub-directory in it that we want to get rid of 1 year 1 month ago #43914

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
Answer to #1: There's nothing in the "live site" variable of the configuration.php file

Answer to #2: Here's what's in the RewriteBase section of the .htaccess file:
# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 1 month ago #43960

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
Hi Anita,

OK, try the following for your htaccess file. Remove the # symbol before RewriteBase then add your folder so that it looks like the following:
RewriteBase /davewilliams

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.

URL has a sub-directory in it that we want to get rid of 1 year 1 month ago #44127

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
Hi Nick!

I did that...and it didn't seem to make any change. Can you check it out yourself...and see if it did on your computer?

Anita
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 1 month ago #44128

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
Hi Anita,

There's also no change here. Did you remove the # symbol?

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.

URL has a sub-directory in it that we want to get rid of 1 year 1 month ago #44129

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
Yes I did...

Any other thoughts?

What about the link that Tessa posted? If that's what I need to do... I'd need some help deciphering it. ha.
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 1 month ago #44130

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
Hi Anita,

One last thought from me (then we can try deciphering the htaccess rule:), change the configuration.php's var live to: "www.davewilliams.com/davewilliams/"

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.

URL has a sub-directory in it that we want to get rid of 1 year 4 weeks ago #44329

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
That didn't work :(
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 4 weeks ago #44330

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
Hi Anita,

It's worth double checking with hosting company to make sure you have the domain pointed correctly to the subfolder before we try the htaccess trick. Could you double check with them please? I just want to make sure we find the root of the problem, rather than going around it.

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.

URL has a sub-directory in it that we want to get rid of 1 year 3 weeks ago #44818

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
Hey there Nick - okay, I've finally gotten down to the bottom of this. My client just wasn't clear on the reasoning up until now when I started asking some more specific questions :)

They have multiple websites on the same web hosting account. So they are all divided into sub directories. It IS possible to move all of the files out of the /davewilliams/ sub-directory into the main root folder so that the /davewilliams/ will no longer be in the URL. The issue is that if we did that...all of the other websites (sub-directories) would be all mingled in with all of those files. And my client doesn't want to do that (he's a very very very organized guy - ha!).

So, he is considering just moving the other websites to another hosting account...but that will take a lot of time/work.

Knowing all of this now...is there anything else you can think of that will help us force the /davewilliams/ out of the URL?
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 3 weeks ago #44822

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
Hi Anita,

Thanks! That's correct, the sites should stay in their respective subfolders.

However, could you please check with the hosting company to make sure you have the domain pointed correctly to the subfolder before we try the htaccess trick?

Let me know if you have questions.

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.

URL has a sub-directory in it that we want to get rid of 1 year 3 weeks ago #44873

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
Hey there - yes, it's all pointed correctly...


Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 3 weeks ago #44899

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

I'd really like to answer this question with a definitive answer, but before I try can have a peek inside the bag before I stick my hand in it?

In other words can you send access info to This email address is being protected from spambots. You need JavaScript enabled to view it. for both the Joomla admin and the cpanel account for the hosting?

I looked at what Hostmaster offers and it doesn't look like there is a reason to actually get a new hosting account to get this sorted out. There is something we're missing here, and it would be really helpful to have some access to see how things are set up.

Let me know.
Thanks,
Ed
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 3 weeks ago #45024

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
Ed, you're so sweet to do that!! I'm e-mailing you info right now!

Anita
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 2 weeks ago #45067

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

There is nothing in the setup of Joomla that can fix that. There are only two ways I can think of that it could be happening, since you've tried everything with htaccess and not been able to affect it.

Without access to cPanel, there is no way to see if it is set up properly on the server.

Your best bet might be copy the site and correct the location of all the directories and files.

Ed

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

URL has a sub-directory in it that we want to get rid of 1 year 2 weeks ago #45073

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
I emailed you back :)
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

URL has a sub-directory in it that we want to get rid of 1 year 2 weeks ago #45154

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Good luck with this project!
Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

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.