1
bnabilos
URL Rewriting don't work with PHP 5.2.6
  • 2008/12/8 17:56

  • bnabilos

  • Just popping in

  • Posts: 6

  • Since: 2005/9/19


Hello,
I'm using Suin's Simplified URL as an URL Rewriting script.
In php 5.2.3 everything works well but when I test the website in a php 5.2.6 server, I get blank pages when I try to access to cbb, xcgal and news module.
Can you please tell me how to fix this?
Thank you very much

Nabil

2
Mox20
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/13 16:35

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13



Hello,
I encounter the same problem. the hack is not compatible with php 5x. php with 4x everything works well.

Sorry for my bad English.

3
Mox20
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/26 15:43

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


Up

4
cadelite
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/26 16:12

  • cadelite

  • Just popping in

  • Posts: 86

  • Since: 2008/1/15


You may try Simplified URL 1.51 by Xiao Dao
http://dulpi.com/uploads/wordpress/2008/03/simplified-url-151.zip

The page is in Chinese however:
http://dulpi.com/modules/wordpress/blog52.html

5
Mox20
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/26 16:28

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


Quote:

cadelite wrote:
You may try Simplified URL 1.51 by Xiao Dao
http://dulpi.com/uploads/wordpress/2008/03/simplified-url-151.zip

The page is in Chinese however:
http://dulpi.com/modules/wordpress/blog52.html



Thank you very much my friend

it works really well. I use the url me like this:

http://www.mysite.com/xcgal-displayimage.pid-159.htm

How to modify the "+" with "-"?

Thank you

Sorry for my bad English than French I

6
webmystar
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/26 16:49

  • webmystar

  • Friend of XOOPS

  • Posts: 415

  • Since: 2008/6/23


thank you for sharing this great hack! can this hack upload in the XOOPS download section?

7
bilgikolik
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/26 17:25

  • bilgikolik

  • Just popping in

  • Posts: 27

  • Since: 2007/10/8


i download it but how to use this hack?

8
cadelite
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/27 11:45

  • cadelite

  • Just popping in

  • Posts: 86

  • Since: 2008/1/15


To change "+" to "-", you may modify "blank.php" ("simplified_url.php" in previous version) as follows:

(1) Find:

$out = array(
// Replace URLs of Xoops's root directry.
'<$1$2$3=$4'.XOOPS_URL.'/$5.html$6$7$8>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5.$6+$7.html$8$9$10>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5.$6+$7+$8+$9.html$10$11$12>'
// Replace URLs of modules' directry.
, '<$1$2$3=$4'.XOOPS_URL.'/$5+index.htm$6$7$8>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5+$6.htm$7$8$9>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5+$6.$7+$8.htm$9$10$11>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5+$6.$7+$8+$9+$10.htm$11$12$13>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5+$6.$7+$8+$9+$10+$11+$12.htm$13$14$15>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5+$6.$7+$8+$9+$10+$11+$12+$13+$14.htm$15$16$17>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5+$6.$7+$8+$9+$10+$11+$12+$13+$14+$15+$16.htm$17$18$19>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5+$6.$7+$8+$9+$10+$11+$12+$13+$14+$15+$16+$17+$18.htm$19$20$21>'
);

change to:

$out = array(
// Replace URLs of Xoops's root directry.
'<$1$2$3=$4'.XOOPS_URL.'/$5.html$6$7$8>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5.$6-$7.html$8$9$10>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5.$6-$7-$8-$9.html$10$11$12>'
// Replace URLs of modules' directry.
, '<$1$2$3=$4'.XOOPS_URL.'/$5-index.htm$6$7$8>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5-$6.htm$7$8$9>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5-$6.$7-$8.htm$9$10$11>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5-$6.$7-$8-$9-$10.htm$11$12$13>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5-$6.$7-$8-$9-$10-$11-$12.htm$13$14$15>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5-$6.$7-$8-$9-$10-$11-$12-$13-$14.htm$15$16$17>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5-$6.$7-$8-$9-$10-$11-$12-$13-$14-$15-$16.htm$17$18$19>'
, '<$1$2$3=$4'.XOOPS_URL.'/$5-$6.$7-$8-$9-$10-$11-$12-$13-$14-$15-$16-$17-$18.htm$19$20$21>'
);
[To be continued]

9
cadelite
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/27 11:51

  • cadelite

  • Just popping in

  • Posts: 86

  • Since: 2008/1/15


Then, you may modify "urlloadpage.php" ("loadpage.php" in previous version) as follows:

(2) Find:

$file_arr = explode('+',$req_arr[0]);

change to:

$file_arr = explode('-',$req_arr[0]);

(3) Find:

$para_arr = explode('+',$req_arr[1]);

change to:

$para_arr = explode('-',$req_arr[1]);

(4) Find:

$file_arr = explode('+',$req_arr[0]);

change to:

$file_arr = explode('-',$req_arr[0]);

(5) It's done now. "+" should all change to "-"

10
cadelite
Re: URL Rewriting don't work with PHP 5.2.6
  • 2008/12/27 11:53

  • cadelite

  • Just popping in

  • Posts: 86

  • Since: 2008/1/15


It can be placed in XOOPS download section but I don't know how to do it. Maybe webmaster can do me a favor for it. Thanks a lot!

Login

Who's Online

341 user(s) are online (280 user(s) are browsing Support Forums)


Members: 0


Guests: 341


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits