You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 365 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Mod_rewrite for Google-friendly URLS, in 6.5 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
smazsyr
Nuke Cadet
Nuke Cadet


Joined: Feb 01, 2003
Posts: 3

Location: USA

PostPosted: Sat Feb 01, 2003 5:39 pm Reply with quoteBack to top

http://googletap.com

The excellent mod-rewrite technique that has made many a Nuke site Google friendly causes some limited errors in 6.5B6.

Specifically, replacing the header.php, footer.php and inserting the .htaccess files causes the following error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/scienceb/public_html/65b6/includes/sql_layer.php on line 286

In addition, it appears that the technique does not work when a member has signed on. To them all those nice, short URLs revert back to their lengthier selves.

QUESTION: Can some talented young coder address this? The problem, I suspect, lies in the footer.php file. Possibly a result of a change in the database structure in Nuke 6.5. And I think it's a really simple fix, if you know what you're up to.

Many thanks!

- Ben S.
Find all posts by smazsyrView user's profileSend private message
2 Lazy 2 log in
Guest






PostPosted: Sat Feb 01, 2003 5:55 pm Reply with quoteBack to top

Try pasting the relevent parts into the 6.5 header.php and footer.php
Leave out the forum urls they won't work as written or at all since the session id becomes part of the url.
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Feb 01, 2003 5:55 pm Reply with quoteBack to top

Ben I have those mod_rewrite rules somewhere in my pile of drives. Can you be so kind as to upload the pack?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
2 Lazy 2 log in
Guest






PostPosted: Sat Feb 01, 2003 5:56 pm Reply with quoteBack to top

Of course remove the forum urls from the htaccess too!
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Feb 01, 2003 5:59 pm Reply with quoteBack to top

Now my question is, (since I don't recall) are there rules for the forums that allow Google indexing?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
smazsyr
Guest






PostPosted: Sat Feb 01, 2003 6:14 pm Reply with quoteBack to top

I did try the cut and paste technique, and I did also remove the forums sections before originally posting here. So at least we're thinking along the same lines. But while cutting out the forums prevented those URLs from being malformed, the former did not solve my problem. And it's been driving me batty.

Of course, I may be missing something. But I will upload the files, guys, and maybe you can take a crack at it?

The files can be found here:
http://www.scienceblog.com/65b6/downloads-cat-1.html


- Ben S.
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Feb 01, 2003 6:21 pm Reply with quoteBack to top

Ok, I grabbed it and will take a look. Perhaps I'll implement it here at nuke cops to support future ugprades.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
smazsyr
Guest






PostPosted: Sat Feb 01, 2003 9:34 pm Reply with quoteBack to top

It would be fantastic if you would!
Find all posts by Anonymous
Imago
Guest






PostPosted: Sun Feb 02, 2003 1:16 am Reply with quoteBack to top

I don't know about 6.5 but with 6.0 and phpBB2 0.6 all forums and ALL messages can be successfully rewritten. See

http://www.orientalgate.org/forum1.html
http://www.orientalgate.org/sutra2635.html

There's however some tricks.

1. You should not try to rewrite
modules.php?name=Forums to forums.html
Everything will screw up, no posting of new msg, no next and prev. page etc.

Instead, write a rule for forums.html

2. Forget about topics - absolutely hopeless exploit

3. in .htaccsess use forum-xxx.* or message-xxx.* and only in header.php define the extension you want.

4. Tip 1 and 3 apply for News too, otherwise categories will not be showing up

PS. If you want to test, please use my test site

www.brahma.ru
Your comments and suggestions here:

http://www.brahma.ru/sutra1245.plm

At orientalgate.org I will not accept registrations from non-orientalists.
Find all posts by Anonymous
smazsyr
Guest






PostPosted: Sun Feb 02, 2003 8:14 am Reply with quoteBack to top

I think you're onto something.

Nonetheless, when installed on 6.5, and when a user is logged in, the hack still will produce the errors described above. Any thoughts?
Find all posts by Anonymous
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Sun Feb 02, 2003 9:14 am Reply with quoteBack to top

Ben, did you upload the three sala.net files as they are, without changing anything?

I am asking because the sala rewrite rules for the forums are covering the default 6.0 Splatt forum, not the phpBB2 0.6
Find all posts by ImagoView user's profileSend private messageVisit poster's website
Smazsyr
Guest






PostPosted: Sun Feb 02, 2003 10:07 am Reply with quoteBack to top

Actually, I removed all references to forums in the files to avoid that problem.
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Feb 02, 2003 10:33 am Reply with quoteBack to top

Ok, I think I may be getting back into the Club soon. In the meantime I'll see if I can get it to work here first, before I upgrade to beta 7.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
smazsyr
Guest






PostPosted: Sun Feb 02, 2003 2:08 pm Reply with quoteBack to top

Once again proving, you are the man. I and I'm sure many other Nukers will be grateful for this. And incidentally, when did Nuke Cops become the dominant Nuke site?
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Feb 02, 2003 3:41 pm Reply with quoteBack to top

You can see me making progress at http://computercops.biz. I'm ironing out the forums rewrites. The package I got from this thread wasn't working on them. Once done there, I'll move it to nuke cops too.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.049 Seconds - 230 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::