Mod-Rewrite

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


Joined: 08 Oct 2006
Posts: 87

PostPosted: Thu Mar 01, 2007 2:17 pm    Post subject: Mod-Rewrite Reply with quote

ok guys i'm having hard time with the mod-rewrite that is offered in the new version..i read the tutorials and i seem not to get it right i'm learning please bare with me :( ok i need to add this re-write rule to the server for a zoint.com program

Code:
Options +FollowSymlinks
# If you are running vBSEO with RewriteBase enabled,
# or your webserver needs it, uncomment the following
# line, and change "/forum/z" to the appropriate path
# of where the forum is (ie domain.com/forums/z/ should
# change it to /forums/z)
# RewriteBase /forum/z
RewriteEngine On
RewriteRule ^(install/|tour/|[a-z]+\.php)$ $0 [L]
RewriteRule ^(.+)/(.+)/$ $2.php?z-profile=$1 [QSA]
RewriteRule ^([^/]+)/?$ index.php?z-profile=$1 [QSA]



How can i add this.

thanks guys-pb
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Mar 02, 2007 6:05 pm    Post subject: Re: Mod-Rewrite Reply with quote

puertoblack2003,

Just let us know where that script is located (its virtual path, for example /forum or /mydir/script). This will help us provide you with the full instructions.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
puertoblack2003
-


Joined: 08 Oct 2006
Posts: 87

PostPosted: Sun Mar 04, 2007 12:20 am    Post subject: Re: Mod-Rewrite Reply with quote

aprelium wrote:
puertoblack2003,

Just let us know where that script is located (its virtual path, for example /forum or /mydir/script). This will help us provide you with the full instructions.


actually it's in forums/z

thank you aprelium i know you guys are busy...
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Mar 04, 2007 3:27 pm    Post subject: Re: Mod-Rewrite Reply with quote

puertoblack2003,

Add the following rewriting rules:

* Rule 1:
- Virtual Path Regular Expression: ^/forum/z/(install/|tour/|[a-z]+\.php)$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: $0
- Next action: stop matching

* Rule 2:
- Virtual Path Regular Expression: ^/forum/z/(.+)/(.+)/$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: /forum/z/$2.php?z-profile=$1
- Check "Append query string"
- Next action: continue matching

* Rule 3:
- Virtual Path Regular Expression: ^/forum/z/([^/]+)/?$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: /forum/z/index.php?z-profile=$1
- Check "Append query string"
- Next action: continue matching
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
puertoblack2003
-


Joined: 08 Oct 2006
Posts: 87

PostPosted: Mon Mar 05, 2007 7:01 pm    Post subject: Re: Mod-Rewrite Reply with quote

aprelium wrote:
puertoblack2003,

Add the following rewriting rules:

* Rule 1:
- Virtual Path Regular Expression: ^/forum/z/(install/|tour/|[a-z]+\.php)$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: $0
- Next action: stop matching

* Rule 2:
- Virtual Path Regular Expression: ^/forum/z/(.+)/(.+)/$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: /forum/z/$2.php?z-profile=$1
- Check "Append query string"
- Next action: continue matching

* Rule 3:
- Virtual Path Regular Expression: ^/forum/z/([^/]+)/?$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: /forum/z/index.php?z-profile=$1
- Check "Append query string"
- Next action: continue matching


thank you sir now that rules applies for all mod rewrite or just for that particular program

thanks will try when i get free time.
Back to top View user's profile Send private message
puertoblack2003
-


Joined: 08 Oct 2006
Posts: 87

PostPosted: Mon Mar 05, 2007 7:01 pm    Post subject: Re: Mod-Rewrite Reply with quote

aprelium wrote:
puertoblack2003,

Add the following rewriting rules:

* Rule 1:
- Virtual Path Regular Expression: ^/forum/z/(install/|tour/|[a-z]+\.php)$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: $0
- Next action: stop matching

* Rule 2:
- Virtual Path Regular Expression: ^/forum/z/(.+)/(.+)/$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: /forum/z/$2.php?z-profile=$1
- Check "Append query string"
- Next action: continue matching

* Rule 3:
- Virtual Path Regular Expression: ^/forum/z/([^/]+)/?$
- Conditions: None
- If rule matches: Perform an internal redirection
- Redirect to: /forum/z/index.php?z-profile=$1
- Check "Append query string"
- Next action: continue matching


thank you sir now that rules applies for all mod rewrite or just for that particular program

thanks will try when i get free time.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Mar 05, 2007 7:14 pm    Post subject: Reply with quote

It applies to that program only.
Back to top View user's profile Send private message Visit poster's website
puertoblack2003
-


Joined: 08 Oct 2006
Posts: 87

PostPosted: Wed Mar 07, 2007 1:04 am    Post subject: Reply with quote

TRUSTAbyss wrote:
It applies to that program only.


no go for this one i did it on a test board..when you click on blog it redirect to no page found.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Mar 07, 2007 1:55 am    Post subject: Reply with quote

The link you posted is unavailable. Can you tell me where I can download this script? I can help you more if you help me.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Mar 07, 2007 5:24 pm    Post subject: Reply with quote

puertoblack2003,

The above rules apply to the files inside /forum/z.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
puertoblack2003
-


Joined: 08 Oct 2006
Posts: 87

PostPosted: Wed Mar 07, 2007 11:29 pm    Post subject: Reply with quote

TRUSTAbyss wrote:
The link you posted is unavailable. Can you tell me where I can download this script? I can help you more if you help me.



thanks trust and all of you guys helping...check your pm
Back to top View user's profile Send private message
puertoblack2003
-


Joined: 08 Oct 2006
Posts: 87

PostPosted: Wed Mar 07, 2007 11:31 pm    Post subject: Reply with quote

aprelium wrote:
puertoblack2003,

The above rules apply to the files inside /forum/z.


yes i checked that and implemented it but changed the forum/z to test/z on my test board before it goes live and was getting that no page found :cry:
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Mar 11, 2007 11:38 pm    Post subject: Reply with quote

puertoblack2003 wrote:
yes i checked that and implemented it but changed the forum/z to test/z on my test board before it goes live and was getting that no page found :cry:


Have you changed the rules and substituted all "forum" occurrences there to "test"? If the problem persists, please send us your abyss.conf file and one of the URLs of your script (the URL that you use to see the script page).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
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