I am newbie

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
123456
-


Joined: 07 Mar 2008
Posts: 2

PostPosted: Fri Mar 07, 2008 9:23 am    Post subject: I am newbie Reply with quote

Hello!

Abyss server is very nice and easy to use, but im newbie in url rewriting

Well if im want rewrite url from
http://mysite.com/modules.php?name=Forums&file=viewforum&f=1
to
http://mysite.com/modules/forums/viewforum/1

What i need to do step by step?? Plzz help anyone!
Back to top View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 882
Location: Michigan, USA

PostPosted: Sat Mar 08, 2008 2:51 am    Post subject: Reply with quote

Virtual path regex: ^/modules/(.+)/(.+)/(.*)
Case sensitive: This is up to you. I would uncheck it.
Apply to subrequests too: yes
If rule matches: internal redirection
Redirect to: /modules.php?name=$1&file=$2&f=$3
Append query string: no
Escape redirection location: no
Next action: stop matching

Try that. See if it gets you what you want. You're the one who knows the URL syntax for the rewrite, so toying around with it should get you what you want.

Good website: http://regular-expressions.info
Recommended program: The Regex Coach
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
123456
-


Joined: 07 Mar 2008
Posts: 2

PostPosted: Thu Mar 13, 2008 1:02 am    Post subject: Reply with quote

Thanks for your helping, but nothing happens... Here is image PLEASE HELP

maybe any php modules needed?
Back to top View user's profile Send private message
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Thu Mar 13, 2008 8:41 am    Post subject: Reply with quote

Instead of
Virtual path regex: ^/modules/(.+)/(.+)/(.*)
use
Virtual path regex: ^/modules/(.*)/(.*)/(.*)

And be sure that you are browsing
http://mysite.com/modules/Forums/viewforum/1
To my understanding, this should be converted internally by Abyss into
http://mysite.com/modules.php?name=Forums&file=viewforum&f=1
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

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


Powered by phpBB phpBB Group