PEAK XOOPS - Hack Needed so Navigation Buttons match URL rewrite in englishin japanese

Hack Needed so Navigation Buttons match URL rewrite

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2009/3/23 0:37
ScottB  ʼ   Posts: 3
I am using mod_rewrite mode on which works fine. I have also added another rewrite rule in my root directory htaccess file.

RewriteRule ^CONTENT(.*) /modules/CONTENT/$1 [QSA,L]

This works fine for direct linking to all the pages with the desired URL. I notice however that when using the navigation buttons turned on the module they all direct to:

/modules/CONTENT/wrappedpage.html

This works fine but I need a hack so that the buttons match the rewritten URL meaning next page needs to link to:

/CONTENT/wrappedpage.html

I tried changing the template directly:

<a href="<{$mod_url}>/<{$prev_content.link}>" to
<a href="<{$prev_content.link}>"

which works some time but if you are in a subdirectory then it starts to do some weird things like repeating subdirectory:

/CONTENT/CONTENT/wrapped.page.html

I tried to change my htaccess but kept ending up in infinite loops.

Any ideas?
Votes:10 Average:8.00
Previous post - Next post | Parent - No child | Posted on 2009/4/11 18:05
GIJOE  Ǥ   Posts: 4110
hi ScottB.

I don't recommend rewriting rules changing the depth of the path.

If you want it anyway, try nobunobu's way.
http://www.kowa.org/modules/yybbs/viewbbs.php?bbs_id=4&serial=2164
Though this post was written in Japanese, you have to read just "codes".

The original idea:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=54
Votes:11 Average:5.45

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!