php Arcade Script
May 25, 2013, 10:33:13 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: To upgrade your forum account and access the phpAS Owners Only Section, you need to Log in to the members area and fill out the box at the top of the page. Doing this will get you verified as an official script owner and you will then be able to access the phpAS owner forums.

WARNING: At no time can a phpArcadeScript Owner offer a copy of phpArcadeScript to another person, whether it be someone who is looking for the script or even a current phpArcadeScript owner. Please refer all questions for sales or support at http://www.phparcadescript.com/support    Click Here To Check If Licence Is Valid.

Important notice regarding Php Arcade Script: http://www.phparcadescript.com/forums/index.php/topic,8316.0.html
Important notice regarding forum support: http://www.phparcadescript.com/forums/index.php/topic,8317.0.html

Is your email updated? http://www.phparcadescript.com/forums/index.php/topic,8321.0.html
 
   Home   Help Arcade Login Register  

IMPORTANT:

We have started a new forum that will replace this one in full shortly. You can still reply to existing topics on this forum, but new topics cannot be started here. Please start your new topics on the new forum: here.
Read more about this change here.
Pages: [1] 2
  Print  
Author Topic: help me! .htaccess on godaddy linux hosting  (Read 13194 times)
webmasterweb
Newbie
*
Posts: 1


« on: March 12, 2008, 12:48:50 PM »

Dear Sir I have installed my phparcadescript on godaddy linux hosting. It run well, I have only a big problem. If I enalbe URL Friendly, whene I click on a game the system give me an error message "Page not found". I read in readme file to locate htaccess.htaccess (that stay in includes folder) in main directory. I rename it in .htaccess but the system not run. I read on this forum that many of us had my same problem and then it resolve with another customed .htaccess or adding code lines in .htaccess original file. Please help me If possible.

Can you reply me here, with private message or on my email: webmaster_web@hotmail.it

Thank you very much for your time

best regards
Mikael


webmaster_web@hotmail.it
Logged
gattaca
phpAS Script Owners
Newbie
*
Posts: 11


« Reply #1 on: April 24, 2008, 07:25:20 PM »

I have also read through the forums and have been struggling with this situation and it is a REQUIREMENT for me.  Still can't find a solution.  My problem is that the site is hosted on godaddy but underneath 2 folders.  Do I place the .htaccess file in the folder 2 levels above or on the domain directory it will be used?  I've tried both ways and godaddy has stated that mod_rewrite is on my account.  What do I do?  I really need some help guys as I'm not too familiar with .htaccess files!   Embarrassed
Logged
gamingforcharity
phpAS Script Owners
Jr. Member
*
Posts: 57


WWW
« Reply #2 on: April 24, 2008, 07:57:07 PM »

I believe the .htaccess file would need to be inside the public_html/ folder

for instance it SHOULD be in:

/public_html/

not:

/public_html/domainname/arcade/


perhaps go into your admin panel and click on "site configuration"
instead of making the base url www.yourdomain.com/

try making it the direct path..like

http://www.yourdomain.com/arcade/

(if that's how your site is set up)



not sure if that will fix your problem, but figured I'd post it anyway
« Last Edit: April 24, 2008, 08:00:01 PM by gamingforcharity » Logged

http://www.gamingforcharity.org
Play a Free Flash Arcade Game, Save a Life
Money is donated to finding cures for breast cancer, HIV/AIDS, and diminishing world hunger
trigoon
Guest
« Reply #3 on: April 25, 2008, 05:32:49 AM »

Okay if your arcade is placed in a folder the reason that .htaccess does not take affect is that you need to add a line:

RewriteBase /yourfolder

Before the RewriteEngine on

This lets the server know that the rewrite rules specified are defined for the files under this folder.
Logged
earrelaphant
phpAS Script Owners
Hero Member
*
Posts: 700



WWW
« Reply #4 on: April 25, 2008, 06:32:48 AM »

I believe RewriteBase is mandatory on go daddy servers for mod rewrite to work correctly regardless if placed in sub directory or not.  But I may be mistaken.
Logged

Rod_Snyder
phpAS Script Owners
Hero Member
*
Posts: 612


BIG DOG ARCADE


WWW
« Reply #5 on: April 25, 2008, 07:01:41 AM »

I addressed the problem with Gattaca via PM's but haven't heard the results

Yes, RewriteBase is required on GoDaddy Linux servers

Logged

gattaca
phpAS Script Owners
Newbie
*
Posts: 11


« Reply #6 on: April 25, 2008, 04:40:32 PM »

Thanx guys,...  I tried the suggestions recommended by Rod, earrelaphant, and trigoon but now I am getting a 500 error as opposed to the 404 error before.  Can't even get to the admin panel anymore.  It was working without SEO prior to turning it on so I don't think its a configuration panel issue but will try that nevertheless if its recommended.  Rod_Snyder, I sent you another PM responding to what you sent me.

 Huh Huh
Logged
trigoon
Guest
« Reply #7 on: April 25, 2008, 05:54:53 PM »

Gattaca messing with htaccess creates these problems sometimes, please copy and paste your entire htaccess file here and I will find what is wrong.
Logged
gattaca
phpAS Script Owners
Newbie
*
Posts: 11


« Reply #8 on: April 25, 2008, 07:53:58 PM »

The index.php file for the arcade is located here:
www.site1.com/MySites/site2/arcade

Here is the .htaccess file which is located in the arcade folder:

RewriteEngine on
RewriteBase /arcade/
RewriteRule ^search-results/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=browse&searchid=$1
RewriteRule ^search-results/([^/.]*)/?/([0-9]+)-([0-9]+)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=browse&searchid=$1&page=$2&limit=$3
RewriteRule ^categories/([0-9]+)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=browse&cat=$1
RewriteRule ^categories/([0-9]+)/?/([0-9]+)-([0-9]+)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=browse&cat=$1&page=$2&limit=$3
RewriteRule ^archive/([0-9]+)-([0-9]+)/?$ index.php?page=$1&limit=$2
RewriteRule ^news/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$ index.php?action=displaynews&id=$1
RewriteRule ^search/([_A-Za-z0-9-]+)/([0-9]+)/?$
index.php?action=browse&searchterm=$1&page=$2
RewriteRule ^content/([0-9]+)/([_A-Za-z0-9-]+)/?$ viewgame.php?gameid=$1&code=$2
RewriteRule ^profiles/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=profile&userid=$1
RewriteRule ^categories/([_A-Za-z0-9-]+)/?$ index.php?action=browse&catname=$1
RewriteRule ^games/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=playgame&gameid=$1
RewriteRule ^games/([_A-Za-z0-9-]+)/?$ index.php?action=playgame&title=$1 [L]
Logged
trigoon
Guest
« Reply #9 on: April 25, 2008, 07:59:43 PM »

RewriteBase /arcade/

Is most likely the problem, there should be no following backslash. Try replacing it with:
RewriteBase /arcade
Logged
gattaca
phpAS Script Owners
Newbie
*
Posts: 11


« Reply #10 on: May 01, 2008, 08:17:54 PM »

Sorry guys, no dice.  I even switched my hosting provider over to HostGator as recommended.  Still won't perform mod_rewrite after having copied and pasted the recommended code and trying at least 2 other variations with and without backslashes, options -indexes, ....  No idea what's going on.  Please help.

 Huh
Logged
trigoon
Guest
« Reply #11 on: May 02, 2008, 03:41:38 PM »

Please paste your current htaccess code for me, and I need to know the actual URL of your arcade.
Logged
gattaca
phpAS Script Owners
Newbie
*
Posts: 11


« Reply #12 on: May 03, 2008, 09:30:19 AM »

The current code is the same as above and the url is:  www.madrater.com/arcade
I tried the suggestion of removing the backslash to no avail.  Unless the .htaccess file is removed, that url cannot be accessed so I have temporarily deleted the .htaccess file.
« Last Edit: May 03, 2008, 09:36:56 AM by gattaca » Logged
trigoon
Guest
« Reply #13 on: May 03, 2008, 10:03:45 AM »

Hmm a couple of questions.

Is the htaccess file identical to:

RewriteEngine on
RewriteBase /arcade
RewriteRule ^search-results/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=browse&searchid=$1
RewriteRule ^search-results/([^/.]*)/?/([0-9]+)-([0-9]+)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=browse&searchid=$1&page=$2&limit=$3
RewriteRule ^categories/([0-9]+)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=browse&cat=$1
RewriteRule ^categories/([0-9]+)/?/([0-9]+)-([0-9]+)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=browse&cat=$1&page=$2&limit=$3
RewriteRule ^archive/([0-9]+)-([0-9]+)/?$ index.php?page=$1&limit=$2
RewriteRule ^news/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$ index.php?action=displaynews&id=$1
RewriteRule ^search/([_A-Za-z0-9-]+)/([0-9]+)/?$
index.php?action=browse&searchterm=$1&page=$2
RewriteRule ^content/([0-9]+)/([_A-Za-z0-9-]+)/?$ viewgame.php?gameid=$1&code=$2
RewriteRule ^profiles/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=profile&userid=$1
RewriteRule ^categories/([_A-Za-z0-9-]+)/?$ index.php?action=browse&catname=$1
RewriteRule ^games/([^/.]*)/?/([_A-Za-z0-9-]+).html/?$
index.php?action=playgame&gameid=$1
RewriteRule ^games/([_A-Za-z0-9-]+)/?$ index.php?action=playgame&title=$1 [L]


and is the htaccess file located in the arcade folder? Not the public_html folder.
Logged
gattaca
phpAS Script Owners
Newbie
*
Posts: 11


« Reply #14 on: May 03, 2008, 02:58:30 PM »

Exactly the same and I just tested it after reuploading the file, but when going to the url for the arcade, I get a 500 Internal Server Error on the new host: hostgator.  The file is located inside of the arcade folder.  The domain madrater.com is inside of a folder within the public_html folder called madrater.
« Last Edit: May 03, 2008, 03:00:16 PM by gattaca » Logged
Pages: [1] 2
  Print  

IMPORTANT:

We have started a new forum that will replace this one in full shortly. You can still reply to existing topics on this forum, but new topics cannot be started here. Please start your new topics on the new forum: here.
Read more about this change here.
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!