1
xueming
Help with RewriteRule
  • 2005/6/1 7:14

  • xueming

  • Not too shy to talk

  • Posts: 127

  • Since: 2005/2/7 6


Hello,

I try to manually match some long url using RewriteRule, but I got some errors. I have tested my server using a simple rewite and it works ( as long as I don't use the any modules), so I think there is something wrong on my XOOPS side.

Here is what I added in the .htaccess file:

RewriteEngine on

RewriteRule ^guide/$ /modules/guide/ [L]

And here is the error I got:
Fatal error: Call to a member function on a non-object in /home/virtual/site19/fst/var/www/html/header.php on line 100
Notice [PHP]: Undefined offset: 2 in file include/common.php line 226


line 100 in my header.php is this:
Quote:
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));


Any help is appreciated.

2
hervet
Re: Help with RewriteRule
  • 2005/6/2 17:44

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

Have you see this excellent guide ?
http://xoops-tips.com/mydownloads-singlefile.cid-1-lid-12.htm

Bye,
Herve

3
xueming
Re: Help with RewriteRule
  • 2005/6/3 5:02

  • xueming

  • Not too shy to talk

  • Posts: 127

  • Since: 2005/2/7 6


Thanks Hervet!! It is a greate guide. I only need to do a few mapping for the long URLs, so I just want to manully add the rewrtie in .htaccess to create a few short URL like:

link1.html http://www.mysite.com/modules/guide/singlelink.php?cid=231&lid=1115 [L}

So when I type link1.html t will take me to the long URL.

The rewrtie mapping is working, but I think XOOPS is complaining about not having the module names or somthing.

I afraid that this simple approach won't work :(

Thank you for your constant support !!

Login

Who's Online

176 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

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

Latest GitHub Commits