Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: apache and /modules/news
by sunsnapper on 2003/11/5 15:00:51

Fantastic. Thank You! That does work.



(Note: see this thread for details about having site work with brilliantenergy.com vs. http://www.brilliantenergy.com)
Re: apache and /modules/news
by onokazu on 2003/11/5 9:37:50

sunsnapper, try changing the following code around line 230 in common.php

$xoopsRequestUri = @xoops_getenv('REQUEST_URI');

to

$xoopsRequestUri = @xoops_getenv('SCRIPT_NAME');
Re: apache and /modules/news
by sunsnapper on 2003/11/5 8:16:02

For some reason, I'm not able to get this to work.

I note that you are using XOOPS 1.3.10.
I'm using XOOPS 2.0.5.

Scenario 1: No Error Message. Page loads properly.
Login and visit
http://www.brilliantenergy.com/modules/wfchannel/

MySQL/Blocks Debug Message
SELECT * FROM brilliant__modules WHERE dirname = 'wfchannel'


Scenario 2: Selected Module Does Not Exist
Login and visit
http://www.brilliantenergy.com/about/

MySQL/Blocks Debug Message
SELECT * FROM brilliant__modules WHERE dirname = 'http:'


Scenario 3: "Blank Page UGLY HTML"
Do not login... visit anonymously
http://www.brilliantenergy.com/about/

No MySQL/Blocks Debug Message Appears
Instead, I get a blank page comprised of HTML text in all caps.



Here are the mod_rewrite statements I am using:

RewriteEngine on
RewriteRule ^about/$ /modules/wfchannel/index.php?page=1 [L]
RewriteRule ^about$ /modules/wfchannel/index.php?page=1 [L]


I've also tried:

RewriteEngine on
RewriteRule ^about/$ http://www.brilliantenergy.com/modules/wfchannel/index.php?page=1 [L]
RewriteRule ^about$ http://www.brilliantenergy.com/modules/wfchannel/index.php?page=1 [L]



To rule out wfchannel, I also tried redirecting to newbb:

RewriteEngine on
RewriteRule ^about/$ /modules/newbb/ [L]
RewriteRule ^about$ /modules/newbb/ [L]


All result in the same blank page comprised of HTML that would not seem to match XOOPS XHTML compliant output.

I recognize that in Scenario 2, an invalid module directory is being passed to Xoops. What I am trying to understand better is why this approach worked in XOOPS 1.3.x and why login causes the different behavior between Scenario 2 and 3. Also, curious if people have guesses as to workarounds.
Re: apache and /modules/news
by kain on 2003/6/14 22:14:34

simply great, thank you, it works.
Re: apache and /modules/news
by Nitou on 2003/6/14 15:32:46

Use mod_rewrite :

in .htaccess :

RewriteEngine on
RewriteRule ^$ /modules/news/index.php [L]
RewriteRule ^index.php$ /modules/news/index.php [L]
RewriteRule ^index.html$ /modules/news/index.php [L]

at racine of website (/www/)!

Who's Online

157 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits