Webmastersite.net
Register Log In

Upgrade problem with .htaccess

Comments on Upgrade problem with .htaccess

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 16, 2007 - 9:12 AM:

Just upgraded another site that had been dormant. Upgrade appeared to go ok, but when I try to update the seo page I get the 500 internal error page.

I delete the .htaccess and it is ok - update the seo again but the error just recurrs.


attached is .htaccess

Attached Files:
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 32
Total Comments: 114
azteca
Posted Aug 16, 2007 - 12:11 PM:

Yeah it's been a problem with beta 7 and 8. what I would do is eliminate these out of htaccess.

RewriteRule ^?$ albums.php?rewritten=1
RewriteRule ^?$ albums.php?rewritten=1&catname=$1
RewriteRule ^?$ albums.php?rewritten=1&catname=$1&page=$2

Save it then upload it to your server. Then chmod it to 666.
After that go to SEO in admin and look for these lines.

Format for member link list rewriting:
Format for member link list index rewriting:

They were blank in mine.
Put this

Format for member link list rewriting: lists/{CATREWRITEPATH}-{CATID}/{PAGE}.html
Format for member link list index rewriting: lists/

It should look like this when done for the ones you eliminated.

RewriteRule ^lists/?$ albums.php?rewritten=1
RewriteRule ^lists/[-_/\+A-Za-z0-9äüößèà ]+-([0-9]+)/?$ albums.php?rewritten=1&catname=$1
RewriteRule ^lists/[-_/\+A-Za-z0-9äüößèà ]+-([0-9]+)/([0-9]+)\.html?$ albums.php?rewritten=1&catname=$1&page=$2


Liz
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 16, 2007 - 2:42 PM:

Fixed beta 9 to fill in those fields on upgrade.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 16, 2007 - 9:26 PM:

Thanks Liz and Paul

Unfortunately it has not worked for me. Still get the 500 error



I just checked back on my site http://www.thecatscene.co.uk and on the seo page it is missing those lines. Attached are images of thecatscene showing them missing, and trueloveways where they are there.

Attached Files:
larryjam
Member

Usergroup: Customer
Joined: Sep 25, 2003
Location: Canada

Total Topics: 22
Total Comments: 48
Posted Aug 17, 2007 - 6:35 PM:

Hello babrees,

I remember having to remove the first line of code from the htaccess file.

Try removing this

"Options +FollowSymlinks"




babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 17, 2007 - 9:30 PM:

larryjam wrote:

Try removing this

"Options +FollowSymlinks"



Hi Larry

Thanks, but that didn't work either.

Jill
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 17, 2007 - 11:26 PM:

Is your .htaccess still identical to the one you posted? I don't see how it could be.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 17, 2007 - 11:47 PM:

Paul wrote:
Is your .htaccess still identical to the one you posted? I don't see how it could be.




Attached is the one I uploaded after removing the line suggested by Larry. Still giving me error

Attached Files:
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 18, 2007 - 7:10 AM:

I've just made a brand new site. Uploaded 4.1.0 beta8, making sure I included the admincommonfuncs.php that you sent me. All going fine, until I change seo to rewrite URL, then I get the error page.

Attached is the .htaccess. I tried removing the first line, as per Larry above, but it still doesn't work.

http://www.theshootingscene.co.uk

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Aug 18, 2007 - 11:40 PM:

RewriteRule ^lists/[-_/\+A-Za-z0-9äüößèà]+-([0-9]+)/{PAGE }\.html?$ albums.php?rewritten=1&catname=$1
RewriteRule ^lists/[-_/\+A-Za-z0-9äüößèà]+-([0-9]+)/{PAGE }\.html?$ albums.php?rewritten=1&catname=$1&page=$2


Here's your problem. Spaces aren't allowed in rewrite rules, and you have a space between {PAGE and }, which anyhow will also make the pagination not work.

I'd suggest you put back the line Larry suggests removing, because most people need it, only a tiny fraction of server configurations have a problem with it.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#11 - Quote - Permalink
Posted Aug 19, 2007 - 12:25 AM:

Thanks Paul - that worked for TrueLoveWays, but not TheShootingScene.co.uk which has members saved links switched off and that isn't in the .htaccess.


Attached is the .htaccess that has been written by the system.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Aug 19, 2007 - 4:54 PM:

In that one you have
<meta name="keywords" content="{CATKEYWORDS},{CATNAME} breeders,{CATNAME} breed club,"/>

<meta name="description" content="{SITETITLE} � {SITEDESCRIPTION}"/>

which of course is meta tags and so doesn't belong in an .htaccess file. Did you type this in the "extra .htaccess content" box?
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#13 - Quote - Permalink
Posted Aug 19, 2007 - 9:54 PM:

Paul wrote:
Did you type this in the "extra .htaccess content" box?



Sorry Paul, my mistake. I shall take extra care I type things in the right box!

All working now.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#14 - Quote - Permalink
Posted Aug 20, 2007 - 1:28 PM:

I just updated switches on http://www.trueloveways.co.uk and turned members lists off. It then gave me the internal error again. Attached is the .htaccess it wrote.

[edit] It appears to be only this site that has a problem when rewriting the .htaccess

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#15 - Quote - Permalink
Posted Aug 22, 2007 - 7:25 AM:

As I said before, you have {PAGE } there and a space will always break it. Are you absolutely sure you don't have a space typed in the admin panel page?
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.