WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Upgrade problem with .htaccess

Version: 4.1.0 beta8
Example URL: http://www.trueloveways.co.uk
printPrint


Page: 1 2

Upgrade problem with .htaccess
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 935
Posted 08/16/07 - 08:12 AM:
quote post
#1
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

Edited by babrees on 08/16/07 - 08:17 AM

Attached Files:
.htaccess
(2 KB, 16 downloads)
azteca
Forum Regular

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 28
Total Posts: 102
Posted 08/16/07 - 11:11 AM:
quote post
#2
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6022
Posted 08/16/07 - 01:42 PM:
quote post
#3
Fixed beta 9 to fill in those fields on upgrade.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 935
Posted 08/16/07 - 08:26 PM:
quote post
#4
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.

Edited by babrees on 08/16/07 - 09:00 PM

Attached Files:
catscene.jpg
(63 KB, 18 downloads)
attachment
truelove.jpg
(64 KB, 15 downloads)
attachment
larryjam
Member
Avatar

Usergroup: Customer
Joined: Sep 25, 2003
Location: Canada
Total Topics: 16
Total Posts: 44
Posted 08/17/07 - 05:35 PM:
quote post
#5
Hello babrees,

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

Try removing this

"Options +FollowSymlinks"





Larry

Durham Links Directory


babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 935
Posted 08/17/07 - 08:30 PM:
quote post
#6
larryjam wrote:

Try removing this

"Options +FollowSymlinks"



Hi Larry

Thanks, but that didn't work either.

Jill
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6022
Posted 08/17/07 - 10:26 PM:
quote post
#7
Is your .htaccess still identical to the one you posted? I don't see how it could be.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 935
Posted 08/17/07 - 10:47 PM:
quote post
#8
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:
.htaccess
(2 KB, 14 downloads)
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 935
Posted 08/18/07 - 06:10 AM:
quote post
#9
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:
.htaccess
(2 KB, 20 downloads)
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6022
Posted 08/18/07 - 10:40 PM:
quote post
#10
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.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 935
Posted 08/18/07 - 11:25 PM:
quote post
#11
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:
.htaccess
(2 KB, 19 downloads)
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6022
Posted 08/19/07 - 03:54 PM:
quote post
#12
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?

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 935
Posted 08/19/07 - 08:54 PM:
quote post
#13
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
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 935
Posted 08/20/07 - 12:28 PM:
quote post
#14
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


Edited by babrees on 08/21/07 - 01:44 AM

Attached Files:
.htaccess
(2 KB, 16 downloads)
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6022
Posted 08/22/07 - 06:25 AM:
quote post
#15
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?

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as

Page: 1 2



You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.