Stoli: .htaccess Problem

Status
Not open for further replies.

butikibuster77

New Member
Messages
8
Reaction score
0
Points
1
Rewrite Mode is not working on my site, though the last time it was working fine before the server upgrades. It throws a 404 not found error page like index.php is missing (http://mushoku.tk/~dollars), so in the mean time I've turned off the rewrite mode. Also some of the php file that I have which creates an xml file returns a 500 internal server error (PS: I have chmod my folder to 775 not 777). The whole site went nuts after the changes has been made. Thank you for the reply.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Can you post the content of your .htaccess file? so that i can look if something is wrong there.
 

butikibuster77

New Member
Messages
8
Reaction score
0
Points
1
The first one is this:

RewriteEngine on
RewriteRule ^~dollars$ index.php [L]
RewriteRule ^~login$ login.php [L]

The other one:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_]+)/*$ index.php?controller=$1&%{QUERY_STRING} [L]
RewriteRule ^([a-z0-9_]+)/([a-z0-9_]+)/*$ index.php?controller=$1&action=$2&%{QUERY_STRING} [L]

Both were fine before the server upgrades last time.

---------- Post added at 09:50 AM ---------- Previous post was at 04:42 AM ----------

I think the problem is in the server (stoli) not on my script. The site that I have has been working normally on my localhost (xampp). Can you check that out? Thanks..
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Try add RewriteBase / in .htaccess file,

PHP:
RewriteEngine on
RewriteBase /
RewriteRule ^~dollars$ index.php [L]
RewriteRule ^~login$ login.php [L]
PHP:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_]+)/*$ index.php?controller=$1&%{QUERY_STRING} [L]
RewriteRule ^([a-z0-9_]+)/([a-z0-9_]+)/*$ index.php?controller=$1&action=$2&%{QUERY_STRING} [L]
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Since we have not heard back I am marking this as resolved. If further assistance is needed please re-open this thread.
 
Status
Not open for further replies.
Top