Help with mod rewrite

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Wed Mar 14, 2007 6:51 am    Post subject: Help with mod rewrite Reply with 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.

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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Mar 15, 2007 11:21 pm    Post subject: Re: Help with mod rewrite Reply with quote

jibbajabba,

These rules could be converted in a straightforward manner by following the article http://www.aprelium.com/abyssws/articles/urlrewriting-modrewrite-conversion.html .

If it does not help, please let us know and we'll give you the exact instructions to create the equivalent rules (but let us know where the file is locate - for example /mybb/).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Fri Mar 16, 2007 1:54 am    Post subject: Re: Help with mod rewrite Reply with quote

aprelium wrote:
jibbajabba,

These rules could be converted in a straightforward manner by following the article http://www.aprelium.com/abyssws/articles/urlrewriting-modrewrite-conversion.html .

If it does not help, please let us know and we'll give you the exact instructions to create the equivalent rules (but let us know where the file is locate - for example /mybb/).


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 View user's profile Send private message Visit poster's website
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Fri Mar 16, 2007 5:34 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
TRUSTAbyss
-


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

PostPosted: Fri Mar 16, 2007 10:16 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Sat Mar 17, 2007 5:02 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Sat Mar 17, 2007 8:29 pm    Post subject: Reply with quote

it would certainly help the noobs like me.
_________________
http://www.jibba-jabba.net | http://www.mosthauntedforum.com
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 -> General Questions 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