Jump to content

.htaccess


SFB

Recommended Posts

I wanted to use .htaccess to redirect http://dcole.ath.cx/sfb/any_file.any_extensionto http://snowforts.ath.cx/same_file.same_extension both of these locations point to the same place on the server so i could use htaccess to redirect one to the other but i dont know how to do this. note any_file.any_extension is not just one file it is any file with any extension in the folder sfb.

Link to comment
Share on other sites

hmm.. Ive always wanted to learn how to code those .htacces pages, never bothered to look. so what your trying to do is redirect a page to your new domain?

Link to comment
Share on other sites

just so i dont confuse anyone i will start from the begining. I am hosted by the dcole server (http://dcole.ath.cx) automatically you get a folder. my folder is sfb so to get to my files i could go like http://dcole.ath.cx/sfb I have the option of getting my own subdomain from dyndns.com. I chose snowforts.ath.cx. when somone goes to http://snowforts.ath.cx it goes to the same place http://dcole.ath.cx/sfb goes to. I just wanted to redirect everyone that goes to my site the dcole way to my site having my own subdomain. i do not have access to the httpd file so i am using .htaccess. I think dcole has to restart the server or just apache or something for the changes i made to take place.

Link to comment
Share on other sites

well thats a horrible server.. server should not be rebooted(restarted) very often, you should only do this when you and upgrading something or it has a problem..and BTW, you might want to change all of your links, none of them except the guest and login links work.. :)

Link to comment
Share on other sites

ok well time to tell the story again... dan cole (my host) changed servers then lost data. I luckly had an old coppy. his server isnt back to normal yet so my links dont work. most of my files i havent uploaded because they wont work anyways. Dan has finals in school and doesnt have much time for the server. i really stopped careing. there is something wrong with the way i uploaded the .htaccess file. restarting didnt help.

Link to comment
Share on other sites

If you're serious about web programming, there's no reason why you shouldn't have your own hosting account. You can get them for dollars per month, for servers that keep their software updated and let you do what you want to do with them. Anyway, just something to think about.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...