Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > CPanel - Control Panel

Notices

CPanel - Control Panel All Cpanel questions and issues.

Reply
 
Thread Tools
  #1  
Old 06-01-2009, 05:58 PM
Susan - TNC
 
Join Date: May 2009
Posts: 4
Default 500 Internal Server Errors any time I edit .htaccess

When we bought a new domain name, mcatoolkit.org, it was created by VH as an add-on domain to the original name of our hosting account, leaseown.org. I have now launched the site mcatoolkit.org, and rewritten leaseown.org's index page to open the new site's (no meta or htaccess rules).

Now I want to hand-code the .htaccess file at the top level of public_html to redirect specific pages internal to the leaseown.org site to other pages in mcatoolkit.org.

I was unsuccessful when I tried to redirect, say, /Home/About_Us.html to http://www.mcatoolkit.org/Home/About_Us.html. I would immediately get 500 Internal Server Errors when trying to access either the old site or the new site.

Then I tried one single file in .htaccess, which did not break, but also did not work...nothing was redirected UNTIL after VH upgraded my CPanel software. Now (a) the rule shows up in CPanel, and (b) the .htaccess file, which consists only of:
Redirect 301 /Resources/PMCA_Workshop.html http://www.mcatoolkit.org/Resources/...s_PMCA_08.html
works.

But every time I try to add another line to the .htaccess file, in the same format, I get the 500 error.

When I try to add the rule via CPanel, I get this error from the server:

"Apache detected an error in the Rewrite config.
Syntax error on line 3 of /home/vvisucax/public_html/.htaccess._K5LK2JL5JqyBgX78yWrTU5b_j8wyxCd:
Redirect takes two or three arguments, an optional status, then document to be redirected and destination URL
Please try again"

Of course, I have no idea what CPanel is doing and I would rather just write this .htaccess file and be done with it! I will have many lines in it. Please help. Thanks.

Domains: leaseown.org, mcatoolkit.org
Account ID: vvisucax
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 06-01-2009, 09:29 PM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
Default Re: 500 Internal Server Errors any time I edit .htaccess

redirect from the folders root instead of the websites root and see if that solves the issue..

Also dont use HOME/About us.. unless HOME is a folder or directory of public_html

Karen
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 06-01-2009, 10:30 PM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: 500 Internal Server Errors any time I edit .htaccess

What is currently in the .htaccess file, and what code are you trying to add
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 06-02-2009, 12:13 AM
Susan - TNC
 
Join Date: May 2009
Posts: 4
Default Re: 500 Internal Server Errors any time I edit .htaccess

Karen Mac: (a) there is a directory named Home at the top level of public_html. (b) I tried putting a separate .htaccess file into that directory. Its contents are:
Redirect 301 /Contact_Us.html http://www.mcatoolkit.org/Home/Contact_Us.html
Redirect 301 /Help.html http://www.mcatoolkit.org/Home/Help.html
Redirect 301 /About_Us.html http://www.mcatoolkit.org/Home/About_Us.html
Redirect 301 /Mailing_List.html http://www.mcatoolkit.org/Home/Mailing_List.html

and so on. I still get a server error when trying to go to any of the pages in that directory. But it doesn't bring down the entire site.

Watdaflip: see above. Obviously, in the .htaccess file at the top level, the above redirect commands would read
Redirect 301 /directoryname/filename.html http://www.mcatoolkit.org/Home/Mailing_List.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 06-02-2009, 12:29 AM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
Default Re: 500 Internal Server Errors any time I edit .htaccess

yes.. but you dont USE home. thats why you are having problems.. htacess goes in your PUBLIC_HTML only.. so dont use it.. you cant direct that part of the server.

Karen
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 06-02-2009, 01:26 AM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: 500 Internal Server Errors any time I edit .htaccess

If you are just trying to redirect every page from the old domain to the new domain, you can just use this code (note: all the page names would have to stay exactly the same)

Code:
RewriteEngine On
RewriteRule ^(.*)$ http://www.mcatoolkit.org/$1 [R=301,L]
edit:
fixed code box.. forgot the / in [/code]
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 06-02-2009, 01:34 AM
Susan - TNC
 
Join Date: May 2009
Posts: 4
Default Re: 500 Internal Server Errors any time I edit .htaccess

Karen, I'm sorry but I don't understand you. Forget about the subdir called "Home". (I *do* "use* my directory called "Home" in both leaseown.org and mcatoolkit.org.) I have tried to redirect files in a subdir called "Resources", a subdir called "Step_1", and so on. *All these subdirs are in my Public_html folder...I am not trying to use any other part of the server!

(a) if I put the .htaccess file in Public_html, the topic of my original message in this thread, I cannot add any lines beyond the first one which (as I said) started working correctly after our CPanel was upgraded.
(b) if I put an .htaccess file in Public_html/Step_1/ with a few lines redirecting files, none of the files in that directory work--I get server errors.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 06-02-2009, 01:36 AM
Susan - TNC
 
Join Date: May 2009
Posts: 4
Default Re: 500 Internal Server Errors any time I edit .htaccess

Watdaflip: thank you but I know that, and from the details of my messages--including the very first one-- you would see that not all the subfolders nor the html files within them are named the same.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 07:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203