Hostgator shared web hosting plan does allow apache mod_rewrite feature, and you can use the rewrite feature. There are alot of php scripts that require mod_rewrite feature to be enable on web server in order to function properly. For example this wordpress blog does require redirect via .htaccess and using the rewrite function. Hence allow the wordpress blog permalink to work. You can do permanent redirect or temporary redirection too.
If you are not sure mod_rewrite function is enabled in hostgator shared web hosting? The answer here will be yes, and you can use mod_rewrite in your hostgator shared web hosting.
“# Never use www in the domain
# Replace ‘example.com’ with your domain name
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.(([a-z0-9_]+.)?example.com)$ [NC]
RewriteRule .? http://%1%{REQUEST_URI} [R=301,L]“
2 Responses to “Hostgator mod_rewrite enabled”
Leave a Reply
10 Most Recent Posting
- Hostgator email setting & email login
- Hostgator email setup & add new email for new user
- Choosing the right Hostgator Promo Code
- Using twitter to casually meeting new customer
- Hostgator uptime & Hostgator review for July 2010
- Choose hostgator web hosting that is clear & less confusing!
- Add a WIKI website for your small business site
- Hostgator wordpress demo web site!
- Hostgator uptime & Hostgator review for June 2010
- Offering free services to your customer







May 1st, 2010 at 3:05 pm
I hope you can help me out with this.
I’m trying to redirect traffic from an old domain to a new domain.
After researching on the web, I found this script:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yournewdomain.com/$1 [R=301,L]:
I changed the “yourdomain.com” above with the new domain URL
I copied it to the very top of my .htaccess file on my server in my old domain.
The only thing is, every time I go and click on one of the links that are indexex in Google for my old domain, I get the following error message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Both blogs are hosted with HostGator on a reseller account.
Appreciate any help you can give me.
Khal
May 1st, 2010 at 3:34 pm
Just to let you know that I was able to figure it out.
The site where I got the script from had a ” : ” at the end of the following line:
RewriteRule (.*) http://www.yournewdomain.com/$1 [R=301,L]:
Removed the ” : ” and everything worked just nicely.