huge problem .htaccess

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
iknowu99
Forum Commoner
Posts: 39
Joined: Thu Aug 14, 2008 3:20 pm

huge problem .htaccess

Post by iknowu99 »

Hello ALL

I just ran into a huge problem!!

"Yahoo! does not currently allow you to upload .htaccess files to your account."

.htaccess in Yahoo web hosting - any workarounds??
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: huge problem .htaccess

Post by onion2k »

Assuming you're using htaccess for URL rewriting...

Fake htaccess with PHP? You'd need to create a controller script that parses input like http://www.domain.com/controller.php/arg1/arg2/arg3/ ... you get an annoying .php in the middle of the URL but it works with search engines nicely. Obviously this solution might mean rewriting much of your code though.

Alternatively, get a better host. Or don't bother with htaccess.

If you're using htaccess for anything else you'll need to be a bit more specific.
User avatar
iknowu99
Forum Commoner
Posts: 39
Joined: Thu Aug 14, 2008 3:20 pm

Re: huge problem .htaccess

Post by iknowu99 »

hi onion2k,
the goal is to create a members area in a subdirectory where pictures and passwordprotected.html file exists. This way i can let members sign up through paypal and email them the username:password to access the members area. This is the plan as of now. I am open to new solutions.

Members area will not need multiple users therefore one username/password should do the job.

i have it setup right now that users just need to know that name of the "passwordprotected.html" file and they can see the members area just like that. :( Tools like getright will have people not signing up and seeing the file. i'm sure getright is not the only way either.... the first thing i'm trying to do is not to get google/yahoo robots in there! i just learned about these robots.txt files and working on that first, please help!! :banghead:
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: huge problem .htaccess

Post by matthijs »

Is yahoo some free hosting you use? Another option is to get some hosting elsewhere, with support for htaccess (and more). Hosting is so cheap, it doesn't make sense to let the money be an issue. Certainly if you're building something more serious with members and all
User avatar
iknowu99
Forum Commoner
Posts: 39
Joined: Thu Aug 14, 2008 3:20 pm

Re: huge problem .htaccess

Post by iknowu99 »

okay i will consider, but is there a way to transfer the site name?
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: huge problem .htaccess

Post by matthijs »

Yes it's possible to transfer the domain name. At least when you are the owner.
User avatar
iknowu99
Forum Commoner
Posts: 39
Joined: Thu Aug 14, 2008 3:20 pm

Re: huge problem .htaccess

Post by iknowu99 »

i'll be doing this. Thanks!
Post Reply