A way to Rig Clean URLS

Joined: 01/09/2008
User offline. Last seen 3 years 21 weeks ago.

Hey guys...I just started listening to the Podcast a few weeks ago because I started in on Drupal. I am developing some rather complex sites currently for a business development company to use as a community to coach people and such from.

However, I am having an issue here. I need clean URLs, but I don't know that my server will do it. I need to invest in a dedicated host, but for now...I have GoDaddy. It has served me well up until this. I don't have full access to the server, and my .htaccess rules are all correct, but I need to know what I can do if there is no mod_rewrite.

Can you help me.

BTW, Thanks for the spectacular podcast. My next project is the ministry I work with.

Joined: 03/13/2007
User offline. Last seen 1 year 3 weeks ago.
clean urls

how are you uploading your files to godaddy?
If you are using a mac, it doesn't see any files that start with a . which would keep you from being able to run the clean urls test.

~Phil

~Phil

Joined: 01/09/2008
User offline. Last seen 3 years 21 weeks ago.
Yes on Mac no on Upload

I know about that on my Mac. However, I do also know that the current Drupal installation I am testing with is an installation from GoDaddy's little free scripts thing. They actually install the DB for me and everything.

Nonetheless, I have since learned far more about Drupal and am running a clean fresh installation on MAMP locally for all the development and themeing. I just need to port it over to the GoDaddy host now.

My concern is that the test installation that I have on there won't allow Clean URLs but of course my MAMP will because I control it.

I don't know what to do. Can you help me any?

Do you think that when I upload it (which btw will be via Dreamweaver's built in FTP which shows my .htaccess files) it will be okay since I set it all up.

G&G Moderator
Darrin's picture
Joined: 01/29/2007
User offline. Last seen 3 weeks 3 days ago.
I have a feeling that your

I have a feeling that your probably going to be fine with clean urls with Godaddy as long as you upload the .htaccess file.

I have shared hosting and as long as the .htaccess is there clean urls work fine.

G&G Moderator
shrop's picture
Joined: 07/16/2007
User offline. Last seen 1 week 4 days ago.
Yes. I have uploaded several

Yes. I have uploaded several Drupal sites to godaddy.com Linux hosting for clients. Clean URLS work fine with .htaccess. Also, GoDaddy recently added cron jobs to their features offerings so you can setup the Drupal cron.

Shrop

Mark Shropshire "shrop"
Geeks & God Forums Moderator
http://geeksandgod.com/users/shrop

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
Windows or Linux

Is the hosting Linux or Windows? .htaccess files are an Apache thing and don't work on IIS (the Microsoft web server). You have to setup the same features in another way.

Also, many times when you ftp files to a host the .htaccess file isn't moved unless you go out of your way to move it. The period at the front means it's a hidden file in a Unix based system (with OS X is). So, unless your ftp program is set to view hidden files or you move it manually with something like command line ftp the files won't be moved.

Are either of these your issue?

Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
subdirectory?

Is your installation at the root of the domain or in a subdirectory? Like is it at:

example.com or example.com/drupal

If it's on a subdomain there is a line in the .htaccess file that you need to edit before clean urls will work right.

Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 01/09/2008
User offline. Last seen 3 years 21 weeks ago.
Thanks for the Comfort

Thank you MF, shrop and techmate,

I do have my test installation in a subdirectory. I had not even thought about that.

My overall knowledge is not very extensive. Give me HTML and tables and I'm set. However, the way is not tables and basic HTML. It is PHP and DRUPAL!

Okay well...I will be porting my installation of my local Drupal over to a subdomain tonight. Will that hurt my drupal installation since the subdomain is actually a subdirectory in a since?

I assume it won't, but I need to do a beta launch with some testers the first of next month and do an official press release and launch the month after on the actual domain.

May be a little more work then necessary, but is the route we decided. At this point I don't want to make to drastic of changes to the plan.

Thank you again everyone.

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
depends on browser path

When it comes to url rewriting it depends on the drowser path and not the directory structure of the files on the server. So, example.com and sub.example.com are both the same as far at the install is concerned. In both cases, if drupal is installed there, it is considered being installed at the root.

If drupal is installed at example.com/drupal/ or sub.example.com/drupal/ than it is in a sub part of the base. In this case, for url rewriting to work, you need to edit the RewriteBase line in the .htaccess file for the rewritten urls to take into account the /drupal portion of the url.

Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com