Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 04-17-2006, 05:38 PM
blah blah is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 2
Default mod_rewrite

Do shared servers have mod_rewrite enabled?

And how do you enable it on your domain... I know its something with an .htaccess file...

Reply With Quote
  #2  
Old 04-17-2006, 05:45 PM
blah blah is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 2
Default Re: mod_rewrite

Quote:
Originally Posted by blah
Do shared servers have mod_rewrite enabled?

And how do you enable it on your domain... I know its something with an .htaccess file...

hmm nevermind I think...

RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

To rewrite non www to www... I think thats what I was looking for...
Reply With Quote
  #3  
Old 04-04-2007, 11:11 PM
Cruth Cruth is offline
Hatchling Croc
 
Join Date: Feb 2006
Posts: 4
Default Re: mod_rewrite --- Purge these two posts, PLEASE!

For people like me .... who is also a hostgator customer, working hard to find answers, and then have to read posts like this, that really say nothing, and lead to dead links ... not purging multiple posts like this is a disservice.

cruth
Reply With Quote
  #4  
Old 04-05-2007, 12:49 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: mod_rewrite

Wow....

This post actually answered the question he himself asked, and correctly.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #5  
Old 04-05-2007, 02:41 AM
ufopsi.com's Avatar
ufopsi.com ufopsi.com is offline
Swamp Croc
 
Join Date: Nov 2006
Location: Ticino, Switzerland
Posts: 304
Default Re: mod_rewrite

Quote:
Originally Posted by slapshotw View Post
Wow....

This post actually answered the question he himself asked, and correctly.
That post made my day. LOL thanks.
__________________
Michele Bugliaro Goggia, designer SUP
UFOs and the paranormal ::
Cool UFO T-shirts



Reply With Quote
  #6  
Old 04-12-2007, 05:41 PM
Hostalot Hostalot is offline
Baby Croc
 
Join Date: Mar 2007
Posts: 92
Default Re: mod_rewrite

At first I thought he wanted to know whether mod rewrite is enabled on shared accounts?!
__________________
A review directory of cheap web hosting providers
Read my Hostgator review before you sign up
Listings of the cheapest web hosting providers
Reply With Quote
  #7  
Old 06-25-2009, 10:33 AM
whatshakin's Avatar
whatshakin whatshakin is offline
Hatchling Croc
 
Join Date: Jun 2009
Posts: 2
Default Re: mod_rewrite

So what's the answer?
Reply With Quote
  #8  
Old 06-25-2009, 10:41 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,475
Default Re: mod_rewrite

Quote:
Originally Posted by whatshakin View Post
So what's the answer?
mod_rewrite is enabled in HostGator shared servers.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #9  
Old 06-25-2009, 10:48 AM
taha116 taha116 is offline
Baby Croc
 
Join Date: Jun 2009
Posts: 63
Default Re: mod_rewrite

Lol good question, Nice job answering yourself and thanks quiteFinn for verifying the answer for stupid people like me
Reply With Quote
  #10  
Old 11-02-2009, 08:09 AM
carlorizzante carlorizzante is offline
Hatchling Croc
 
Join Date: Oct 2009
Posts: 6
Default Re: mod_rewrite

Actually the post helped me
(so, thank you)
Reply With Quote
  #11  
Old 12-24-2009, 02:43 PM
gitalovers gitalovers is offline
Hatchling Croc
 
Join Date: Dec 2009
Posts: 2
Default Re: mod_rewrite

i copied above texts to .htaccess file on my site in hostgator server.

I want to make a pretty url like twitter/facebook username.

http://www.atlost.com/a

but failed.

the original url is:

http://www.atlost.com/index.php?user=a

atlost.com is an addon domain under gitalovers.com (my primary hosted site on HG).
I place the .htaccess under /atlost.com directory, under gitalovers.com's /public_html

this's my index.php:

PHP Code:
<?
$user
=$_REQUEST['user'];

if(
$user=="a")
{
    echo 
"hahaha";
}
?>
Reply With Quote
  #12  
Old 12-24-2009, 03:16 PM
gitalovers gitalovers is offline
Hatchling Croc
 
Join Date: Dec 2009
Posts: 2
Default Re: mod_rewrite

evrything is okay while i was changing to:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) index.php?user=$1

thanx
Reply With Quote
  #13  
Old 12-25-2009, 04:31 AM
rota919 rota919 is offline
Swamp Croc
 
Join Date: Jan 2007
Location: Armagh, Northern Ireland
Posts: 323
Default Re: mod_rewrite

Not quite possible to accomplish what you want with the example in this post.

Look here for a bit more detail and explanation.
http://www.workingwith.me.uk/article...ng/mod_rewrite
__________________
Fred
Reply With Quote
  #14  
Old 12-30-2009, 08:16 PM
pavement pavement is offline
Hatchling Croc
 
Join Date: Dec 2009
Posts: 5
Default Re: mod_rewrite

so would a baby croc account be on a shared server?
__________________
visit my student forum:
http://www.studentpavement.com
Reply With Quote
  #15  
Old 12-30-2009, 09:42 PM
striddy's Avatar
striddy striddy is offline
Veteran Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 4,040
Default Re: mod_rewrite

Quote:
Originally Posted by pavement View Post
so would a baby croc account be on a shared server?
All plans other than dedicated servers are shared plans.
__________________
- David
Reply With Quote
  #16  
Old 01-10-2010, 06:12 AM
AngelDust AngelDust is offline
Hatchling Croc
 
Join Date: Dec 2009
Posts: 1
Default Re: mod_rewrite

He actually answered his own question. But helpful for others nonetheless. Thanks!


Male Yeast Infection Cure
Reply With Quote
  #17  
Old 01-21-2011, 09:23 PM
diamontetech diamontetech is offline
Hatchling Croc
 
Join Date: Jan 2011
Posts: 2
Default Re: mod_rewrite

Will someone please give me the rewrite to change example.com/addition.html to example.com/addition

Thanks in advance
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 09:00 PM.