[solved] Activating htaccess on Godaddy

New to mod_rewrite? This is a good place to start.

[solved] Activating htaccess on Godaddy

Postby jll » Wed Jan 10, 2007 7:52 am

I got it to work somehow

Hello,

I have a site at:

XXXX

but I need to rewrite all requests to the URL above from:

XXXX

I have created an '.htaccess' file with the following:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule .* http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]


However, nothing is happening. So I checked godaddy support and their docs say:

---
Mod_rewrite is an Apache web server module installed on all of our Linux severs by default; it does not have to be installed or enabled. Our Linux hosting accounts support most mod_rewrite functionality. You will not need to enable mod_rewrite in your httpd.conf, as this is handled at a global level. All you will need to do is add the desired code to the body of your .htaccess file. NOTE:The .htaccess file containing the rewrite rules must be in the same directory as the target files.
---
http://help.godaddy.com/article.php?article_id=899&topic_id=&prog_id=GoDaddy&

However, I don't have access to any httpd.conf and can't figure out through googling how to create a safe one?

Any help would be much appreciated.
jll
 
Posts: 1
Joined: Wed Jan 10, 2007 7:46 am

Return to Beginner's Corner

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron