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: 308
Name: Alex
Location: Behind You
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!
Need a FILE host? Nobody gets it done right like 1Stopupload.com!
microcolt is offline
Reply With Quote
View Public Profile Visit microcolt's homepage!
 
When You Register, These Ads Go Away!
Old 06-08-2007, 06:47 PM Re: Anybody else have trouble with Godaddy's .htaccess?
King Spam Talker

Posts: 1,126
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 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: 308
Name: Alex
Location: Behind You
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!
Need a FILE host? Nobody gets it done right like 1Stopupload.com!
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.11682 seconds with 12 queries