PDA

View Full Version : Making a ht access


CQ2
03-09-2015, 10:31 PM
I have made a lot of ht access files but never one for a site that has a - between it like HereIam-Now.com. every ht access thing i used on this gives me a 500 error can anyone help with this.

TheLastSuperman
03-09-2015, 10:36 PM
Did you escape the hyphen?

These articles might help:
http://forums.modx.com/thread/70073/advice-if-your-domain-name-has-a-hyphen
http://stackoverflow.com/questions/20713461/htaccess-rewrite-rule-with-hyphen-in-tld

CQ2
03-09-2015, 10:57 PM
thanks you so much

TheLastSuperman
03-09-2015, 10:59 PM
So by your reply I take it, you have it working now? Let us know, that way others in the future who have the same issue and find this thread know ;).

:cool:

CQ2
03-09-2015, 11:28 PM
:(:erm: again to no avail The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@ HereIam-Now.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Brandon Sheley
03-09-2015, 11:39 PM
What are you trying to do with your .htaccess file?
a hyphen in the domain doesn't matter in the least.

Maybe paste the contents of your .htaccess file here?

CQ2
03-09-2015, 11:41 PM
I have added ht access to 3 other vb 3.8 boards in the renamed acp but for this one it is to no end it isnt letting me do it



--------------- Added 1425948318 at 1425948318 ---------------

AuthName "user log in"
AuthType Basic
AuthUserFile /home/My-Site.com/forum/games2/.htpasswd
AuthGroupFile /dev/null
require valid-user


htpasswd

reloaded:3tV1FETttNTd2

ForceHSS
03-10-2015, 09:09 AM
Why you making a password htaccess for your index for?

CQ2
03-10-2015, 05:01 PM
even leaving off the index still is showing me a error 500 code :(

ForceHSS
03-10-2015, 06:14 PM
You do no you are making htaccess files for htpasswd files is this what you want to do? or are you wanting to make a htaccess file for site urls

if you are making it for htpasswd then you only add them to the admincp folder, modcp folder, includes folder, packages folder, and vb folder

If you need help can do it for you

CQ2
03-10-2015, 06:33 PM
making for the acp folder

ForceHSS
03-10-2015, 06:40 PM
acp? did you rename a folder

CQ2
03-10-2015, 07:17 PM
but i have this working in 3 other forums no matter what i do in this one it dont work

--------------- Added 1426018681 at 1426018681 ---------------

acp? did you rename a folder

yes and i did this all in the config file as well the board works great but when i try to add the ht access then it errors with a 500 error

ForceHSS
03-10-2015, 10:36 PM
If you want me to have a look pm me

CQ2
03-12-2015, 03:26 AM
I finally did get it all worked out but thanks to everyone for the advice and help :up: