icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » .htaccess file and restart

Shared Hosting Questions about your shared hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old June 10th, 2008, 4:18 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
.htaccess file and restart

Hi

Where can I edit the .htaccess file in Cpanel and how to restart the server?


thanks
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10th, 2008, 4:38 PM   #2 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,660 posts
Gave thanks: 81
Thanked 128 times
When you log into your FTP account, before clicking the public_html folder, you will find the .htaccess file there. Now about the restart of the server I'm not so sure.
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 10th, 2008, 5:02 PM   #3 (permalink)
mgk
Registered User
Excelling Contributor
 
Joined in Mar 2007
Lives in Wales
Hosted on dime999
619 posts
Gave thanks: 47
Thanked 46 times
restarting various services like apache can be done in WHM if that is so configured. (not for reseller accounts)
__________________
Markus
mgk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 11th, 2008, 1:37 AM   #4 (permalink)
Surpass Abuse Admin
Super #1
 
removed's Avatar
 
Joined in Mar 2005
Lives in Houston, TX
Hosted on NONE
7,797 posts
Gave thanks: 11
Thanked 278 times
I assume you're on a shared hosting account since this topic was posted in the "Shared" forum. With that said, you will not be able to do this on a shared server.
__________________
Unofficial IRC Channel: #surpass EFNet
Unofficial = No official support. Support requests can be submitted to our helpdesk.
removed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 11th, 2008, 6:29 AM   #5 (permalink)
01101100
Super #1
 
markscns's Avatar
 
Joined in Jan 2006
Lives in West Michigan
Hosted on SH92
1,606 posts
Gave thanks: 49
Thanked 114 times
Because this is posted in the shared hosting account area, this is not possible for shared accounts.

Because of the nature of your question though, I want to dive into this a bit deeper. Are you thinking that you need to restart the server after making a change to .htaccess?

If so, you do not, changes to the .htaccess file are immediate. Now if for some reason a change is required to httpd.conf (which only admins have access to), that would require a restart of the httpd service.
__________________
twinlakeweather.us SH92
markscns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 11th, 2008, 2:13 PM   #6 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
yes, my account is an share hosting account. I want to add some codes to the .htaccess file and I thought it will require a restart to take the affects. What happens if I deleted the .htaccess file unintentionally ? what should i do?
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 11th, 2008, 5:04 PM   #7 (permalink)
He shoots.. He scores!
Super #1
 
puckchaser's Avatar
 
Joined in Feb 2007
Lives in A room with no windows.
Hosted on SH110
1,446 posts
Gave thanks: 46
Thanked 140 times
Quote:
Originally Posted by skyhigh007 View Post
yes, my account is an share hosting account. I want to add some codes to the .htaccess file and I thought it will require a restart to take the affects. What happens if I deleted the .htaccess file unintentionally ? what should i do?

First thing you should do is make a backup.

If you have shell acess:

# cp .htaccess .htaccess.orig

If you dont have shell access (or have no idea what it is)

Open the file for editing in cPanel, and copy the contents to your local pc (hilight, copy, past)

Then, if you mess it up. you can put your original data back.

:-)

More info - When you edit .htaccess, if you want to have apache disregard certain entries place a '#' (without quotes) at the beginning of a line. This way you dont have to erase existing code.
__________________
SH110
puckchaser is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 12th, 2008, 1:01 PM   #8 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2005
99 posts
Gave thanks: 0
Thanked 0 times
Thank you for the answers! The .htaccess is suppose to be an empty file in the beginning ?
skyhigh007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On