View previous topic :: View next topic |
Author |
Message |
puertoblack2003 -
Joined: 08 Oct 2006 Posts: 87
|
Posted: Thu Mar 01, 2007 2:17 pm Post subject: Mod-Rewrite |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Mar 02, 2007 6:05 pm Post subject: Re: Mod-Rewrite |
|
|
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 |
|
|
puertoblack2003 -
Joined: 08 Oct 2006 Posts: 87
|
Posted: Sun Mar 04, 2007 12:20 am Post subject: Re: Mod-Rewrite |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Mar 04, 2007 3:27 pm Post subject: Re: Mod-Rewrite |
|
|
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 |
|
|
puertoblack2003 -
Joined: 08 Oct 2006 Posts: 87
|
Posted: Mon Mar 05, 2007 7:01 pm Post subject: Re: Mod-Rewrite |
|
|
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 |
|
|
puertoblack2003 -
Joined: 08 Oct 2006 Posts: 87
|
Posted: Mon Mar 05, 2007 7:01 pm Post subject: Re: Mod-Rewrite |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Mar 05, 2007 7:14 pm Post subject: |
|
|
It applies to that program only. |
|
Back to top |
|
|
puertoblack2003 -
Joined: 08 Oct 2006 Posts: 87
|
Posted: Wed Mar 07, 2007 1:04 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Mar 07, 2007 1:55 am Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Mar 07, 2007 5:24 pm Post subject: |
|
|
puertoblack2003,
The above rules apply to the files inside /forum/z. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
puertoblack2003 -
Joined: 08 Oct 2006 Posts: 87
|
Posted: Wed Mar 07, 2007 11:29 pm Post subject: |
|
|
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 |
|
|
puertoblack2003 -
Joined: 08 Oct 2006 Posts: 87
|
Posted: Wed Mar 07, 2007 11:31 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Mar 11, 2007 11:38 pm Post subject: |
|
|
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 |
|
|
|