Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > PHP / MySQL Assistance
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2008, 07:44 AM
Junior Member
 
Join Date: May 2008
Posts: 4
Default htaccess & Joomla - Error 500

Hi there,

I'm having problems with Joomla sites I host on hostican. Until recently I had a domain, coburnhouse.com, that used Joomla 1.0.x. It used sh404SEF to make the URL's search engine friendly and the site worked perfectly up until a week or so ago. Suddenly when you hit the domain (index.php) you got an error 500. However if you hit a page/file in a subdirectory it worked fine. It seems it's only the redirects that are playing up. So I disable the sh404SEF and suddenly I can access the index.php file on the domain.

If I try one of the SEO friendly URL's in the browser it just lands on the index.php.

I'm wondering whether this is due to a change to the server configuration by HostIcan as I haven't made any changes myself.

Here is what is unhashed in my .htaccess file...



RewriteEngine On

DirectoryIndex index.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php


Many thanks

Last edited by mtippett : 05-06-2008 at 08:07 AM. Reason: extra info
Reply With Quote
  #2 (permalink)  
Old 05-06-2008, 09:06 AM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,470
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by mtippett View Post
Hi there,

I'm having problems with Joomla sites I host on hostican. Until recently I had a domain, coburnhouse.com, that used Joomla 1.0.x. It used sh404SEF to make the URL's search engine friendly and the site worked perfectly up until a week or so ago. Suddenly when you hit the domain (index.php) you got an error 500. However if you hit a page/file in a subdirectory it worked fine. It seems it's only the redirects that are playing up. So I disable the sh404SEF and suddenly I can access the index.php file on the domain.

If I try one of the SEO friendly URL's in the browser it just lands on the index.php.

I'm wondering whether this is due to a change to the server configuration by HostIcan as I haven't made any changes myself.

Here is what is unhashed in my .htaccess file...



RewriteEngine On

DirectoryIndex index.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php


Many thanks
mtippett - Welcome to the community forum!

If you rename the .htaccess to .htaccess.old - what does it do? Does it work or still throw a Internal Server Error 500 ?
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #3 (permalink)  
Old 05-06-2008, 09:41 AM
Junior Member
 
Join Date: May 2008
Posts: 4
Default

hi Inxcode

Once I renamed .htaccess to .htaccess.old I could still hit the domain and see the index.php and other pages in non-SEO friendly URL's. I then turned on SEO friendly URL's and again i can hit the index.php. However I can't get to other pages (the ones which have their URL changed) instead I get a 404 error.
Reply With Quote
  #4 (permalink)  
Old 05-06-2008, 10:17 AM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,470
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by mtippett View Post
hi Inxcode

Once I renamed .htaccess to .htaccess.old I could still hit the domain and see the index.php and other pages in non-SEO friendly URL's. I then turned on SEO friendly URL's and again i can hit the index.php. However I can't get to other pages (the ones which have their URL changed) instead I get a 404 error.
What im trying to determine is if:

With .htaccess you get internal server error - Yes / No

Without .htaccess do you get internal server error - Yes / No

Thats all... links arn't suppose to work while you do the test....
HostICan - Support - Pre-Sales, E-Mail, and so many more answers... :: Internal Server Error 500

Is some more informaiton
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #5 (permalink)  
Old 05-06-2008, 11:29 AM
Junior Member
 
Join Date: May 2008
Posts: 4
Default

Inxcode,

Thanks for the continued help.

From what I can see at my end with htaccess I get an internal server error & without htaccess I don't get the error. If I use the URL re-write function without htaccess it is able to rewrite the URL, just not in the form I want it.

But it's strange that this happened recently without me making any changes. This domain has been up for many months with the SEO friendly URL re-writer working fine. It's just recently that the problems started. I believe it could be a change that HostIcan made to their configuration.

I have looked over what they said regarding 500 errors and none of the things listed apply. All permissions are correct and the htaccess has worked previously; no changes have been made by me.
Reply With Quote
  #6 (permalink)  
Old 05-06-2008, 06:45 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,470
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by mtippett View Post
Inxcode,

Thanks for the continued help.

From what I can see at my end with htaccess I get an internal server error & without htaccess I don't get the error. If I use the URL re-write function without htaccess it is able to rewrite the URL, just not in the form I want it.

But it's strange that this happened recently without me making any changes. This domain has been up for many months with the SEO friendly URL re-writer working fine. It's just recently that the problems started. I believe it could be a change that HostIcan made to their configuration.

I have looked over what they said regarding 500 errors and none of the things listed apply. All permissions are correct and the htaccess has worked previously; no changes have been made by me.
Ah, ok so now we know for sure its something with the .htaccess, and you are sure that its 100% nothing else in there apart from what you pasted above?

If so, I suggest commenting out the first paragraph of code and see if it works, to find out where it is... then narrow it down to a line... then you know what to fix.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #7 (permalink)  
Old 05-07-2008, 12:14 PM
Junior Member
 
Join Date: May 2008
Posts: 4
Angry still not working :(

I tried the narrowing down etc but to no avail. I decided to start again one of of my sites.

I made the pages again in Joomla and added in the SEO plugin that changes the URL. It worked fine as a sub-directory of a domain I already successfully use with Joomla and the SEO plugin.

So I decide to point a domain name I have at the sub-directory. Suddenly the site gets error 500 whenever I hit it. If I look at the site through the sub-directory (where it's hosted) it works fine. If I disable the SEO plugin it works fine. But looking at it by using the domain that points to it suddenly screws it all up.

Reply With Quote
  #8 (permalink)  
Old 05-07-2008, 06:41 PM
seoguru's Avatar
SEO Guru
 
Join Date: Sep 2007
Posts: 111
Default

You may need to post that on Joomla support forum, they are more knowledgeable in this.
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.