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

Hack Needed so Navigation Buttons match URL rewrite

List posts in the topic

none Hack Needed so Navigation Buttons match URL rewrite

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2009/3/23 0:37
ScottB  Private   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

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!