Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: language rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
shawnaraxi
Newbie
Newbie


Joined: 26 January 2010
Online Status: Offline
Posts: 22
Posted: 26 January 2010 at 11:11pm | IP Logged Quote shawnaraxi

I have a RewriteRule that works fine. I would now like to add "&language=french" to the end of the url if the request is "francais/Araxi-Traductions.html"

this is th request that works:
RewriteRule ^/Araxi-Traductions\.html$ /index.cfm?action=home.cover

now I would like to add something if we see "francais/" in the link
from this
francais/Araxi-Traductions.html
to
index.cfm?action=home.cover&language=french

how could I do this?

Back to Top View shawnaraxi's Profile Search for other posts by shawnaraxi
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10487
Posted: 27 January 2010 at 2:14am | IP Logged Quote Anton

Please try to use this:

RewriteRule ^francais/Araxi-Traductions\.html$ /index.cfm?action=home.cover&language=french

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
shawnaraxi
Newbie
Newbie


Joined: 26 January 2010
Online Status: Offline
Posts: 22
Posted: 27 January 2010 at 10:36am | IP Logged Quote shawnaraxi

thank you
Back to Top View shawnaraxi's Profile Search for other posts by shawnaraxi
 
shawnaraxi
Newbie
Newbie


Joined: 26 January 2010
Online Status: Offline
Posts: 22
Posted: 27 January 2010 at 11:47am | IP Logged Quote shawnaraxi

I spoke too soon. It does rewrite it and push it to the right page but none of the paths in the page are properly recognised as I imagine they are takin into account the "fictional folder" francais.

So no styles, no images, etc.

how can I get around this?

Back to Top View shawnaraxi's Profile Search for other posts by shawnaraxi
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10487
Posted: 28 January 2010 at 2:30am | IP Logged Quote Anton

To resolve the issue all paths to the resources should be specified in root-relative or absolute format.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum