This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Please help me convert .htaccess "AV Arca
Author
Message |
noomkung
Newbie


Joined: 31 July 2010
Location: Thailand
Posts: 11
Posted: 02 August 2010 at 10:37am

Please help me convert .htaccess "AV Arcader Script" to httpd.conf

Code:
DirectoryIndex index.php

RewriteEngine on
RewriteRule ^cat/([0-9]+)?/([0-9a-zA-Z'?-]+)/p([0-9]+) index.php?task=category&id=$1&name=$2&page=$3 [L]
RewriteRule ^cat/([0-9]+)?/([0-9a-zA-Z'?-]+)/([0-9a-zA-Z?-]+)/p([0-9]+) index.php?task=category&id=$1&name=$2&sortby=$3&page=$4 [L]

RewriteRule ^cat/([0-9]+)?/([0-9a-zA-Z'?-]+)/([0-9a-zA-Z?-]+)-([0-9]+) index.php?task=category&id=$1&sortby=$3&page=$4 [L]

RewriteRule ^cat/([0-9]+)?/([0-9a-zA-Z'?-]+) index.php?task=category&id=$1&name=$2 [L]
RewriteRule ^profile/([0-9]+)?/([0-9a-zA-Z?-]+) index.php?task=profile&id=$1&name=$2 [L]
RewriteRule ^profile/comments/([0-9]+)?/([0-9a-zA-Z?-]+) index.php?task=users_comments&id=$1&name=$2 [L]
RewriteRule ^page/([0-9]+) index.php?task=view_page&id=$1 [L] 
RewriteRule ^task/register index.php?task=register [L]
RewriteRule ^task/lost-password index.php?task=lost_pass [L]
RewriteRule ^task/links index.php?task=links [L]
RewriteRule ^task/allnews index.php?task=news [L]
RewriteRule ^task/members index.php?task=member_list [L]
RewriteRule ^task/messages index.php?task=messages [L]
RewriteRule ^task/search index.php?task=search [L]
RewriteRule ^task/news/item/([0-9]+)/([0-9a-zA-Z?-]+) index.php?task=news&id=$1 [L]
RewriteRule ^task/messages index.php?task=messages [L]
RewriteRule ^([0-9a-zA-Z'?-]+)/([0-9]+)/([0-9a-zA-Z'?-]+) index.php?task=view&id=$2&name=$3 [L]

 

Please tell me convert to httpd.conf

 

Thank you



__________________
http://www.len-game.com
Back to Top Visit noomkung's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 August 2010 at 1:50am

It'll look like this:

[ISAPI_Rewrite]
RewriteRule /cat/([0-9]+)?/([0-9a-zA-Z'?-]+)/p([0-9]+) /index.php\?task=category&id=$1&name=$2&page=$3 [L]
RewriteRule /cat/([0-9]+)?/([0-9a-zA-Z'?-]+)/([0-9a-zA-Z?-]+)/p([0-9]+) /index.php\?task=category&id=$1&name=$2&sortby=$3&page=$4 [L]

RewriteRule /cat/([0-9]+)?/[0-9a-zA-Z'?-]+/([0-9a-zA-Z?-]+)-([0-9]+) /index.php\?task=category&id=$1&sortby=$2&page=$3 [L]

RewriteRule /cat/([0-9]+)?/([0-9a-zA-Z'?-]+) /index.php\?task=category&id=$1&name=$2 [L]
RewriteRule /profile/([0-9]+)?/([0-9a-zA-Z?-]+) /index.php\?task=profile&id=$1&name=$2 [L]
RewriteRule /profile/comments/([0-9]+)?/([0-9a-zA-Z?-]+) /index.php\?task=users_comments&id=$1&name=$2 [L]
RewriteRule /page/([0-9]+) /index.php\?task=view_page&id=$1 [L]
RewriteRule /task/register /index.php\?task=register [L]
RewriteRule /task/lost-password /index.php\?task=lost_pass [L]
RewriteRule /task/links /index.php\?task=links [L]
RewriteRule /task/allnews /index.php\?task=news [L]
RewriteRule /task/members /index.php\?task=member_list [L]
RewriteRule /task/messages /index.php\?task=messages [L]
RewriteRule /task/search /index.php\?task=search [L]
RewriteRule /task/news/item/([0-9]+)/[0-9a-zA-Z?-]+ /index.php\?task=news&id=$1 [L]
RewriteRule /task/messages /index.php\?task=messages [L]
RewriteRule /[0-9a-zA-Z'?-]+/([0-9]+)/([0-9a-zA-Z'?-]+) /index.php\?task=view&id=$1&name=$2 [L]

__________________
Regards,
Anton
Back to Top
 
noomkung
Newbie


Joined: 31 July 2010
Location: Thailand
Posts: 11
Posted: 03 August 2010 at 2:48am

I test it show error "The system cannot find the path specified."

and sample

normal url : http://www.len-game.com/index.php?task=links
seo url is : http://www.len-game.com/task/links.html

normal url is : http://www.len-game.com/index.php?task=member_list
seo url is : http://www.len-game.com/task/members.html

normal url is : http://www.len-game.com/index.php?task=view&id=20628
seo url is : http://www.len-game.com/Action/20628/Kumite.html

Please help me again

Thank you very much

www.len-game.com


__________________
http://www.len-game.com
Back to Top Visit noomkung's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 August 2010 at 3:11am

But you don't have the rules for this
http://www.len-game.com/task/links.html
and this
http://www.len-game.com/task/members.html.

They should look a little different in v2:

RewriteRule /task/links\.html /index.php\?task=links [L]
RewriteRule /task/members\.html /index.php\?task=member_list [L]

Please check if all other rules include the .html part where necessary.

__________________
Regards,
Anton
Back to Top
 
noomkung
Newbie


Joined: 31 July 2010
Location: Thailand
Posts: 11
Posted: 03 August 2010 at 3:20am

RewriteRule /task/links\.html /index.php\?task=links [L]
RewriteRule /task/members\.html /index.php\?task=member_list [L]

it work  Thank you
Please help me another link and now my site it config to seo please see visite for error another link

Thank you


__________________
http://www.len-game.com
Back to Top Visit noomkung's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 August 2010 at 3:28am

Do you mean you need help with this:

normal url is : http://www.len-game.com/index.php?task=view&id=20628
seo url is : http://www.len-game.com/Action/20628/Kumite.html

Here's the correct rule:

RewriteRule /[0-9a-zA-Z'?-]+/([0-9]+)/([0-9a-zA-Z'?-]+)\.html /index.php\?task=view&id=$1&name=$2 [L]

__________________
Regards,
Anton
Back to Top
 
noomkung
Newbie


Joined: 31 July 2010
Location: Thailand
Posts: 11
Posted: 03 August 2010 at 3:45am

Anton wrote:
Do you mean you need help with this:

normal url is : http://www.len-game.com/index.php?task=view&id=20628
seo url is : http://www.len-game.com/Action/20628/Kumite.html

Here's the correct rule:

RewriteRule /[0-9a-zA-Z'?-]+/([0-9]+)/([0-9a-zA-Z'?-]+)\.html /index.php\?task=view&id=$1&name=$2 [L]


yes , i use you rule but it not work for this

it show error "The system cannot find the path specified." if i user category name+game name in thai language

but if i use english language only it work

http://www.len-game.com/Puzzle/21336/Tic-Tac-Toe.html

you can help me about this

thank you


__________________
http://www.len-game.com
Back to Top Visit noomkung's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 August 2010 at 7:07am

Ok, please try to use [NE] flag ofter the rule.

__________________
Regards,
Anton
Back to Top
 
noomkung
Newbie


Joined: 31 July 2010
Location: Thailand
Posts: 11
Posted: 03 August 2010 at 8:56am

Anton wrote:
Ok, please try to use [NE] flag ofter the rule.


you mean chnage
RewriteRule /[0-9a-zA-Z'?-]+/([0-9]+)/([0-9a-zA-Z'?-]+)\.html /index.php\?task=view&id=$1&name=$2 [L]

to

RewriteRule /[0-9a-zA-Z'?-]+/([0-9]+)/([0-9a-zA-Z'?-]+)\.html /index.php\?task=view&id=$1&name=$2 [NE]


__________________
http://www.len-game.com
Back to Top Visit noomkung's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 August 2010 at 9:04am

Yes, like this:

RewriteRule /[0-9a-zA-Z'?-]+/([0-9]+)/([0-9a-zA-Z'?-]+)\.html /index.php\?task=view&id=$1&name=$2 [NE,L]

If it doesn't help, please also try the NU flag instead.

__________________
Regards,
Anton
Back to Top
 
noomkung
Newbie


Joined: 31 July 2010
Location: Thailand
Posts: 11
Posted: 03 August 2010 at 9:45am

Anton wrote:
Yes, like this:

RewriteRule /[0-9a-zA-Z'?-]+/([0-9]+)/([0-9a-zA-Z'?-]+)\.html /index.php\?task=view&id=$1&name=$2 [NE,L]

If it doesn't help, please also try the NU flag instead.


[NE,L] or [NU]  it don't work ,please help it again  thank you


__________________
http://www.len-game.com
Back to Top Visit noomkung's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 04 August 2010 at 3:09am

Sorry, I've confused the version of ISAPI_Rewrite you are using. The flags I suggested are for v3...

The thing is that v2 does not support Unicode characters and they are encoded like %xx using your standard encoding or UTF-8.
Please consider using wFetch tool to see what encoding is used and try to request already encoded URLs.


__________________
Regards,
Anton
Back to Top
 
noomkung
Newbie


Joined: 31 July 2010
Location: Thailand
Posts: 11
Posted: 04 August 2010 at 4:53am

you mean i must use ISAPI_Rewrite ?

Thank you very much I will try it


__________________
http://www.len-game.com
Back to Top Visit noomkung's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 04 August 2010 at 5:17am

You must "teach" your index.php to accept encoded result.
ISAPI_Rewrite will work just the same.

__________________
Regards,
Anton
Back to Top
 
noomkung
Newbie


Joined: 31 July 2010
Location: Thailand
Posts: 11
Posted: 04 August 2010 at 9:51am

Anton wrote:
You must "teach" your index.php to accept encoded result.
ISAPI_Rewrite will work just the same.


Thank you


__________________
http://www.len-game.com
Back to Top Visit noomkung's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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