How to use Clean URLs on Godaddy

jodi / 2009-03-11 14:06:35   

I've just spent a couple of hours trying to get this working, so I thought I'd pass on the knowledge to save anyone else the frustration. You'll have to edit the htaccess file that comes with indexhibit.

Replace the contents with this:

Options +FollowSymlinks

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.+) index.php

and follow the rest of the instructions that Vaska gives you. This works perfectly for me.

Vaska A / 2009-03-11 14:25:00   

Do you really need the Options line? When I have problems with this I toss in the RewriteBase and things are usually ok (assuming the server has mod_rewrite).

Thanks for posting this...

jodi / 2009-03-12 15:31:35   

No problem. I didn't think the Options line was necessary either, but I tried it on a whim and it worked immediately! I don't really understand how GoDaddy work sometimes...
Btw, I don't really understand htaccess, so it was a bit of a semi-educated trial and error situation, but it ended up working.

Vaska A / 2009-03-12 15:36:54   

htaccess is powerful and tricky. When I have to work with htaccess I usually prepare for the occasion with a beer or glass of wine.

;)

anmcfarland / 2009-03-31 00:10:35   

I have my defaults.php file updated and also updated the .htaccess file with the code you provide above.

My URLs are still not clean?

Do you find that you need to re-publish before they'll read properly?

I do use GoDaddy. Help! Thank you!

jodi / 2009-03-31 02:39:28   

No, I stopped getting the horrible error the moment I changed that line in the htaccess file.

This link suggests adding a different line: http://www.btjones.com/2007/12/09/godaddy-mod_rewrite-problem-fix/

He says to try adding "Options -MultiViews", though I personally didn't need that. Experiment a bit too. Good luck!

Based on all my experience with them, I'm never going near Godaddy again unless I have to.

MrKappus / 2009-05-14 22:11:08   

Hello again,

I have spent a big chunk of the afternoon souring the forums for a way to get clean URLs on my godaddy server.

Here is a link to my page: http://www.adefranco.com

I am in the midst of learning CSS so I am still green behind the ears, but I have tried every combination of codes and settings and keep getting hit with errors and missing pages.

My MODREWRITE is currently set to false and here is what I have in my htaccess:

Options -MultiViews
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.+) index.php

I'd would appreciate any help you can offer, thank you in advance!

Sonny / 2012-05-10 11:39:10   
I've just spent a couple of hours trying to get this working, so I thought I'd pass on the knowledge to save anyone else the frustration.

Did it! Thank you so much jodi, you just saved me!

danp / 2013-04-14 00:08:33   

I've had this problem for a long time and have a solution. In .hataccess add the folder name behind RewriteBase/. Example:

RewriteBase/folder

I found this solution on a Drupal forum and it works for Indexhibit too. Cheers! Works for both Legacy and 2.0.

This thread has been closed, thank you.