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:


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


I tried changing the template directly:

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

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


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.
Though this post was written in Japanese, you have to read just "codes".

The original idea:
Votes:11 Average:5.45

  Advanced search

Username or e-mail:


Remember Me

Lost Password?

Register now!