*

Recent

Author Topic: error..  (Read 5539 times)

Trasion

  • Guest
error..
« on: September 03, 2009, 07:00:47 PM »
I just installed FAS again. When I try to login, I click the login link, but it takes me to..

http://trasion.com/arcade/login/

Instead of http://www.trasion.com/arcade/pages/login.php.

It does this with every page. Is there an error, or is it my own fault?

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: error..
« Reply #1 on: September 03, 2009, 07:11:57 PM »
go into PHPMyAdmin and turn SEO off in the settings table
then you should be able to login etc

EDIT:
and it shouldn't be going to http://www.trasion.com/arcade/pages/login.php because that file does not include the mysql_connect or session_start it should be going through the index page, index.php?action=login but you have to turn SEO off, then I think it should work, not sure why that might be happening...
« Last Edit: September 03, 2009, 07:15:05 PM by Professor Hubert J. Farnsworth »

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: error..
« Reply #2 on: September 03, 2009, 07:26:30 PM »
When you install the script in a subfolder rather than the root, you have to edit the .htaccess file to reflect it. If I remember correct, I think you would need to add that folder on to the front of the URL you are redirecting to. Been a while since I had to set it up that way, but I think that was how it worked. Something like this

Code: [Select]

RewriteRule ^([^/]*)\/$ /arcade/index.php?action=$1 [L]
RewriteRule ^showprofile/([^/]*)\.html$ /arcade/index.php?action=showprofile&profile=$1 [L]
RewriteRule ^memberslist/([^/]*)\.html$ /arcade/index.php?action=memberslist&page=$1 [L]
RewriteRule ^([^/]*)/([^/]*)\/$ /arcade/index.php?action=$1&cmd=$2 [L]
RewriteRule ^browse/([^/]*)-([^/]*)\.html$ /arcade/index.php?action=browse&ID=$1&name=$2 [L]
RewriteRule ^newest/page([^/]*)\.html$ /arcade/index.php?action=newest&page=$2 [L]

RewriteRule ^blog/([^/]*)/([^/]*)/$ /arcade/index.php?action=blogcat&category=$1&page=$2 [L]
RewriteRule ^blog/$ /arcade/index.php?action=blog [L]
RewriteRule ^blogentry/entryid/([^/]*)/([^/]*)\.html$ /arcade/index.php?action=blogentry&entryid=$1&page=$2 [L]
RewriteRule ^blogentry/submitcomment/$ /arcade/index.php?action=blogentry&cmd=submitcomment [L]
RewriteRule ^blog/page/([^/]*)\.html$ /arcade/index.php?action=blog&page=$1 [L]
RewriteRule ^showcomments/([^/]*)/([^/]*)/([^/]*)\.html$ /arcade/index.php?action=showcomments&name=$1&ID=$2&page=$3 [L]
RewriteRule ^mostplayed/page([^/]*)\.html$ /arcade/index.php?action=newest&page=$2 [L]
RewriteRule ^browse/([^-]*)-([^-]*)/page([^-]*)\.html$ /arcade/index.php?action=browse&ID=$1&name=$2&page=$3 [L]
RewriteRule ^play/([^/]*)-([^/]*)\.html$ /arcade/index.php?action=play&ID=$1&name=$2 [L]