View previous topic :: View next topic |
Author |
Message |
jibbajabba -
Joined: 06 Sep 2005 Posts: 241 Location: England, Doncaster
|
Posted: Wed Mar 14, 2007 6:51 am Post subject: Help with mod rewrite |
|
|
Having looked at all the threads i'm still confused. If only there was some kind of thing where you could insert the htaccess file into console where it converts all the rules etc to abyss's way of doing them. anyway heres the htaccess file i need help with.
Code: | # //seo_mod_start
RewriteEngine On
# Uncomment the following and add your forum path if rewrites arent working properly
#RewriteBase /mybb/
RewriteRule ^index.html$ index.php [L,NE]
RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 [L]
RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 [L]
# //seo_mod_end |
_________________ http://www.jibba-jabba.net | http://www.mosthauntedforum.com |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
jibbajabba -
Joined: 06 Sep 2005 Posts: 241 Location: England, Doncaster
|
Posted: Fri Mar 16, 2007 1:54 am Post subject: Re: Help with mod rewrite |
|
|
Thanks my brain eventually kicked in and i got it working.. was quite easy actually.
Virtual Path Regular Expression If this rule matches Next Action
^/mybb/index.html$ Perform an internal redirection /mybb/index.php Stop matching
^/mybb/(.*)-t-([0-9]+).html(.*)$ Perform an internal redirection /mybb/showthread.php?tid=$2$3 Stop matching
^/mybb/^(.*)-t-([0-9]+)-([0-9]+).html$ Perform an internal redirection /mybb/showthread.php?tid=$2&page=$3 Stop matching
^/mybb/(.*)-f-([0-9]+).html(.*)$ Perform an internal redirection /mybb/forumdisplay.php?fid=$2$3 Stop matching
^/mybb/(.*)-f-([0-9]+)-([0-9]+).html(.*)$ Perform an internal redirection /mybb/forumdisplay.php?fid=$2&page=$3 Stop matching
^/mybb/(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ Perform an internal redirection /mybb/forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 Stop matching
^/mybb/(.*)-a-([0-9]+).html$ Perform an internal redirection /mybb/announcements.php?aid=$2 Stop matching _________________ http://www.jibba-jabba.net | http://www.mosthauntedforum.com |
|
Back to top |
|
 |
loloyd -
Joined: 03 Mar 2006 Posts: 435 Location: Philippines
|
Posted: Fri Mar 16, 2007 5:34 am Post subject: |
|
|
Quote: | Having looked at all the threads i'm still confused. If only there was some kind of thing where you could insert the htaccess file into console where it converts all the rules etc to abyss's way of doing them. anyway heres the htaccess file i need help with. |
Hmm... looks like a good idea, even for a PHP project (calling PHP experts out there). I hope that Aprelium can also make an Abyss feature that will eat up a .htaccess' contents and then spill out its corresponding recommended URL Rewrite settings. :-D _________________
http://home.loloyd.com/ is online if the logo graphic at left is showing. |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Mar 16, 2007 10:16 pm Post subject: |
|
|
I plan to create one of these converters in the near future. Infact, I've been thinking about this for a while now.
If I do start this project, it will be "AbyssWS Rewrite Converter" |
|
Back to top |
|
 |
loloyd -
Joined: 03 Mar 2006 Posts: 435 Location: Philippines
|
Posted: Sat Mar 17, 2007 5:02 pm Post subject: |
|
|
That'll surely prove to be a very useful and widely popular utility, no doubt, hands down.
The problem with that it's much like a fire and forget thing. _________________
http://home.loloyd.com/ is online if the logo graphic at left is showing. |
|
Back to top |
|
 |
jibbajabba -
Joined: 06 Sep 2005 Posts: 241 Location: England, Doncaster
|
|
Back to top |
|
 |
|