in the past I tried this hack on one of my sites, but it didn't worked because my hoster did not allow "AllowOverride" in httpd.conf.
Now, with my new site http://www.nukescripts.de/ the hoster installed PHP 4.3.0, mod-rewrite and activated "AllowOverride". The .htaccess works fine. You can see it here: http://www.nukescripts.de/reviews.html .
But the links on the pages are not converted from .php to .html. I made all changes to the header.php and footer.php, but no chance.
What is going on there? On my site, where "AllowOverride" is not activated, this works. But on that one, that allows that, it doesn't.
Do you have an idea?
Christian
_________________ Christian Einig
NukeScripts Network Germany
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Sun Feb 23, 2003 3:06 pm
I might like to point out that Google's not as anti-php as you might think,
A hell of a lot of the referers for my site have picked up on the Idiots Guide module for some strange reason, and the referer was Google search results on that idiots guide - directly on that idiots guide.
ArtificialINtel
NSN-Germany Nuke Soldier
Joined: Feb 14, 2003
Posts: 31
Location: Germany
Posted:
Sun Feb 23, 2003 3:21 pm
Thanks for your answer.
But this was already clear to me. Google indexes all php-pages, but not that good as html-pages. You can believe me, I know several sites, which were listed much better after applying the mod-rewrite changes.
But I wonder why the links are not converted?
_________________ Christian Einig
NukeScripts Network Germany
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Sun Feb 23, 2003 5:15 pm
Hi Christian and welcome. I tried the reviews.html link and got this:
Sorry, dieses Modul ist nicht aktiv!
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
NSN-Germany Nuke Soldier
Joined: Feb 14, 2003
Posts: 31
Location: Germany
Posted:
Sun Feb 23, 2003 5:22 pm
Hi,
this means: "This module isn't active".
But it shows that the mod-rewrite works. You saw the page nukescripts.de/modules.php?name=Reviews by typing reviews.html in your browser.
So the problem is just, why does the script in the header.php and footer.php not change the links?
_________________ Christian Einig
NukeScripts Network Germany
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Sun Feb 23, 2003 5:37 pm
Yes I know its translation.
Ok, now I understand the problem... PHP-Nuke likes to intermingle the use of "&" and "&" in its URL creations. Take a look at the header.php for the reviews matches to see what is being used. Then you can either change it there, or change it directly in your reviews module index.php file.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
NSN-Germany Nuke Soldier
Joined: Feb 14, 2003
Posts: 31
Location: Germany
Posted:
Mon Feb 24, 2003 6:09 am
I already thought of that. But that seems not to be the problem. Now I used both "& amp;" and "&", but nothing. If it may be useful for you, I am using this code in the header.php for testing:
$contents = ob_get_contents(); // store buffer in $contents
ob_end_clean(); // delete output buffer and stop buffering
echo replace_for_mod_rewrite($contents); //display modified buffer to screen
global $dbg_starttime;
?>
_________________ Christian Einig
NukeScripts Network Germany
NSN-Germany Nuke Soldier
Joined: Feb 14, 2003
Posts: 31
Location: Germany
Posted:
Mon Feb 24, 2003 6:50 am
On my site I have the NSN-Navbar (JavaScript), that all NSN sites have. Could this cause the problem?
I also can't get htmlarea (WYSIWYG-Editor) working.
_________________ Christian Einig
NukeScripts Network Germany
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Mon Feb 24, 2003 10:05 am
Let me do some testing on this end.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
NSN-Germany Nuke Soldier
Joined: Feb 14, 2003
Posts: 31
Location: Germany
Posted:
Mon Feb 24, 2003 11:15 am
Do you need my files?
_________________ Christian Einig
NukeScripts Network Germany
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Mon Feb 24, 2003 11:27 am
Yeah that would help.. header, footer, and htaccess in a tarball please.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
NSN-Germany Nuke Soldier
Joined: Feb 14, 2003
Posts: 31
Location: Germany
Posted:
Mon Feb 24, 2003 12:00 pm
Okay. Mail is sent. But it is a zip-file. I hope that is okay for you. I don't have a tool to create tar-files.
_________________ Christian Einig
NukeScripts Network Germany
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Mon Feb 24, 2003 12:22 pm
In that case since its only three files, can you upload them to the site here?
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
NSN-Germany Nuke Soldier
Joined: Feb 14, 2003
Posts: 31
Location: Germany
Posted:
Mon Feb 24, 2003 12:31 pm
I don't know how to upload them here, so I sent them unzipped to you now.
_________________ Christian Einig
NukeScripts Network Germany
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Mon Feb 24, 2003 1:10 pm
Just use the Uploads module in the top nav bar.
Also, can you run thru the reviews module at computercops.biz? As you see its working there.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
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