MyBB Community Forums
[Error Message] From htaccess - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [Error Message] From htaccess (/thread-143135.html)

Pages: 1 2


From htaccess - uzurpatoru - 2013-07-26

My htaccess file is empty. If i add "DirectoryIndex portal.php index.php" i get 500 internal server error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@domain and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



RE: From htaccess - .m. - 2013-07-26

try this
<IfModule mod_rewrite.c>
	RewriteEngine on
        DirectoryIndex /portal.php /index.php
</IfModule>



RE: From htaccess - uzurpatoru - 2013-07-26

(2013-07-26, 07:19 PM).m. Wrote: try this
<IfModule mod_rewrite.c>
	RewriteEngine on
        DirectoryIndex /portal.php /index.php
</IfModule>

Still the same Sad


RE: From htaccess - .m. - 2013-07-26

^ you have to check server's error log or ask your web host for the guidance
and you can try this plugin for the portal redirect --> Portal Redirect for 1.6


RE: From htaccess - uzurpatoru - 2013-07-26

where is error log?


RE: From htaccess - .m. - 2013-07-26

^ server error log should be available at web host panel (search with CTRL + F for error or log)


RE: From htaccess - uzurpatoru - 2013-07-26

There are the last errors in log:


[09-Jun-2013 18:19:16 Europe/Helsinki] PHP Parse error:  syntax error, unexpected T_DNUMBER in /home/domain/public_html/hosting.php on line 9
[17-Jun-2013 03:28:57 Europe/Helsinki] PHP Parse error:  syntax error, unexpected T_STRING in /home/domain/public_html/inc/functions_online.php on line 669
[17-Jun-2013 03:28:58 Europe/Helsinki] PHP Parse error:  syntax error, unexpected T_STRING in /home/domain/public_html/inc/functions_online.php on line 669
[17-Jun-2013 03:28:59 Europe/Helsinki] PHP Parse error:  syntax error, unexpected T_STRING in /home/domain/public_html/inc/functions_online.php on line 669
[17-Jun-2013 03:30:49 Europe/Helsinki] PHP Parse error:  syntax error, unexpected T_VARIABLE in /home/domain/public_html/inc/functions_online.php on line 669
[17-Jun-2013 03:30:50 Europe/Helsinki] PHP Parse error:  syntax error, unexpected T_VARIABLE in /home/domain/public_html/inc/functions_online.php on line 669



RE: From htaccess - uzurpatoru - 2013-07-29

Why can't i use any htaccess? Before i changed the web-host, i used a .htaccess file. Now i can't any more. What can i do?


RE: From htaccess - frostschutz - 2013-07-29

you'd have to ask your host, not us


RE: From htaccess - uzurpatoru - 2013-07-29

(2013-07-29, 04:14 PM)frostschutz Wrote: you'd have to ask your host, not us

Alright. Thanx.