Page 1 of 1

[SOLVED] BANNER mod PROBLEM with links

Posted: Thu 30. Nov 2006, 14:48
by lady_witchcraft
hy guys and phpwcms-gurus :D

installed the BANNER MOD on my phpwcms v. 1.2.8 and it works fine BUT not the links of the banners?!

nekket helped me out with a hint for showing the correct path of the link, so this prob was solved by adding

Code: Select all

'http://' . $_SERVER['HTTP_HOST'] . 
before the $_server request_uri in the banner.func.php file ...
BUT when i or my visitor click on the banner, to reach the linked page the mod or the link misbehaves...

a new window opens BUT NOT with the needed url of the banner, but with an 404 error because of/showing the url i mentioned above (http://subdomain.mydomain.org/article.phtml&banner=1)... shoulden't the link changes to the right banner url when the browser opens the new window???

PLEASE help me, i don't know where the prob is or how to solve this misbehaviour!!

thx for any hints and solutions in advance!!! & greets from austria
claudia

just for info: using phpwcms 1.2.8, rewrite function = on, MOD ID unchanged (777) other MODs in use: calendar mod, grafical text mod and grafix mod....

Posted: Sat 2. Dec 2006, 00:46
by wingover
Hi,

I turned the 'rewrite' on my local Server on to test your 'problem'.

I changed the rewrite-rule in the .htaccess and now it`s working.

RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ index.php?id=$1,$2,$3,$4,$5,$6
change to:
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml(.+)?$ index.php?id=$1,$2,$3,$4,$5,$6&$7

RewriteRule ^(.+)\.phtml$ index.php?$1
change to:
RewriteRule ^(.+)\.phtml(.+)?$ index.php?$1&$2

OR

RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ /mysubdir/index.php?id=$1,$2,$3,$4,$5,$6
change to:
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml(.+)?$ /phpwcms_test/index.php?id=$1,$2,$3,$4,$5,$6&$7

RewriteRule ^(.+)\.phtml$ /mysubdir/index.php?$1
change to:
RewriteRule ^(.+)\.phtml(.+)?$ /mysubdir/index.php?$1&$2


Grüzli - Andi

Posted: Sun 3. Dec 2006, 18:49
by lady_witchcraft
THX a lot for your help andi/wingover!!! everythings works fine for my now!!

greets from austria - claudia