Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Anybody else have trouble with Godaddy's .htaccess?
Old 06-08-2007, 02:30 PM Anybody else have trouble with Godaddy's .htaccess?
The PHP Professor

Posts: 340
Name: Alex
Location: Behind You
Trades: 0
Does anybody else have trouble with Godaddy's .htaccess or Apache systems?

I have a regularserver, Economy Hosting - Linux, and my Apache and everything works great. On my other server i have a delux package, Delux Hosting - Linux, and i am having lots of trouble trying to get the **** thing to work. It's like half of apache is not installed or something. Can anybody help me i really want it to work and i actually need it for something.
__________________
Go Kirby! <(" . "<) (^" . "^) (>" . ")> Talkupation!
microcolt is offline
Reply With Quote
View Public Profile Visit microcolt's homepage!
 
 
Register now for full access!
Old 06-08-2007, 06:47 PM Re: Anybody else have trouble with Godaddy's .htaccess?
Defies a Status

Posts: 1,605
Trades: 0
Not sure I am the person who can tell you EXACTLY what you need but I know it can be done.

One of the scripts (indexscript) that I am using only required a / to be added a the proper place for the rewrite rules to work. So it is just a slightly different server config from a standard cPanel Apache.

Post specific questions and provide a copy of the part that is not working for best chance of getting an answer.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 06-08-2007, 08:14 PM Re: Anybody else have trouble with Godaddy's .htaccess?
The PHP Professor

Posts: 340
Name: Alex
Location: Behind You
Trades: 0
ok this is the code i use:

Code:
# Delete or comment out these lines if you're getting Internal Server error because your server does not have mod_rewrite.
RewriteEngine On

# registered user files
RewriteRule ^files/(([a-z0-9_]+)/)?([0-9]+)_([a-z0-9]+)/.* getfile.php?action=$2&file_id=$3&file_key=$4 [L,NC,QSA]
RewriteRule ^thumbs/(large|small|square)/([0-9]+)_([a-z0-9]+)/.* getfile.php?action=thumb&size=$1&file_id=$2&file_key=$3 [L,NC,QSA]
RewriteRule ^view/((full)/)?([0-9]+)_([a-z0-9]+)$ view.php?action=$2&file_id=$3&file_key=$4 [L,NC,QSA]

# Public files
RewriteRule ^public/((browse|viewset|manage|slideshow)/?)?(([a-z0-9]+)\_)?([0-9]+)?/?$ public.php?action=$2&upload_key=$4&upload_id=$5 [L,NC,QSA]
RewriteRule ^public/view/((full)/)?([0-9]+)/?$ pview.php?action=$2&file_id=$3 [L,NC,QSA]
RewriteRule ^pfiles/(([a-z0-9_]+)/)?([0-9]+)/.* pfile.php?action=$2&file_id=$3 [L,NC,QSA]
RewriteRule ^pthumbs/(large|small|square)/([0-9]+)/.* pfile.php?action=thumb&size=$1&file_id=$2 [L,NC,QSA]

# User links
RewriteRule ^/*browse/+([a-z0-9_]+)/?(/([0-9]+)_?([a-z0-9]*)(/page([0-9]+))?)?/?$ browse.php?action=browse&username=$1&folder_id=$3&folder_key=$4&page=$6 [L,NC,QSA]
RewriteRule ^/*info/+([a-z0-9_]+)/?$ browse.php?action=info&username=$1 [L,NC,QSA]
RewriteRule ^/*pm/+([a-z0-9_]+)/?$ usercp.php?action=sendpm&username=$1 [L,NC,QSA]

# Rules for making links cleaner.
RewriteRule ^/*(public|folders|usercp|account|myfiles|upload|slideshow|comment|contacts|announcements)/?$ $1.php [L,NC,QSA]
RewriteRule ^/*slideshow/([0-9]+)(_([a-z0-9]+))?$ slideshow.php?folder_id=$1&folder_key=$3 [L,NC,QSA]
RewriteRule ^register/?$ account.php?action=register [L,NC,QSA]
RewriteRule ^login/?$ account.php?action=login [L,NC,QSA]

RewriteRule ^members/?$ browse.php [L,NC,QSA]
RewriteRule ^members/page([0-9]+)/?$ browse.php?page=$1 [L,NC,QSA]
RewriteRule ^members/public/?(page([0-9]+))?/?$ browse.php?public=1&page=$2 [L,NC,QSA]
RewriteRule ^members/info/([0-9]+)$ browse.php?action=info&userid=$1 [L,NC,QSA]
RewriteRule ^members/browse/([0-9]+)/?(/.+)?$ browse.php?action=browse&userid=$1&folder=$2 [L,NC,QSA]
RewriteRule ^contacts/(add|delete|edit)/([a-z0-9_]+)$ contacts.php?action=$1&username=$2&use=username [L,NC,QSA]
and it will not work on my Delux server, but it will work on my Economy server. so WTF!
__________________
Go Kirby! <(" . "<) (^" . "^) (>" . ")> Talkupation!
microcolt is offline
Reply With Quote
View Public Profile Visit microcolt's homepage!
 
Reply     « Reply to Anybody else have trouble with Godaddy's .htaccess?
 

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 not edit your posts

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25951 seconds with 12 queries