View previous topic :: View next topic |
Author |
Message |
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Fri Sep 28, 2007 3:07 pm Post subject: Translating .htaccess file - all but one works. |
|
|
After going over the tutorial I finally figured out how to translate the .htaccess rewrite rules to abyss. It was a long process converting the 15 or so rules, but I got it done, and they all work but one.
I'm using the unclassified news board and the rewrite rules are all basically the same. For example:
Code: | RewriteRule ^search/(.*) forum.php?req=search&InSubject=1&InMessage=1&Query=$1 [L,QSA] |
I converted this one to abyss like so:
^/mb/search/(.*)
and
/mb/forum.php?req=search&InSubject=1&InMessage=1&Query=$1
This works fine. When this rule is in place, the old URL:
http://nfgworld.com/mb/forum.php?req=search
becomes the new URL:
http://site.com/mb/search
The problem is the control panel rule. The .htaccess rewrite rule is:
Code: | RewriteRule ^cp(;(.*))?$ forum.php?req=cp&item=1&rewrite=$2 [L,QSA] |
I converted this to abyss:
^/mb/cp(;(.*))?$
and
/mb/forum.php?req=cp&item=1&rewrite=$
This doesn't work. The old URL:
http://site.com/mb/forum.php?req=cp&cat=summary
becomes
http://nfgworld.com/mb/cp;cat=summary
But for whatever reason the page it actually shows me is (old URL):
http://nfgworld.com/mb/forum.php?req=cp&id=1
Now that I've looked deeper into it there's at least one other one that doesn't work either, and I gotta admit it was all I could do to figure out the translation. Bughunting is beyond me!
All the .htaccess rules work fine on my other site running appache. I would love some advice on this. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Sep 29, 2007 3:00 am Post subject: Re: Translating .htaccess file - all but one works. |
|
|
Lawrence,
Please send to our technical support your abyss.conf file as well as the original .htaccess file. We suspect two rules to be interfering.
By the way, have you enabled the URL rewriting logging? It could help you understand how the rules are used to process the request. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Sat Sep 29, 2007 11:05 am Post subject: |
|
|
Checking the logfile solved the problem - at least, it solved the OTHER problems. I failed to add the /dir/ prefix to several of the rewrite rules.
The first one solved itself, as if it was a caching issue. What didn't work yesterday or this morning worked fine this afternoon.
Thing is, I checked it yesterday with another browser and it was still broken. Today suddenly it's started working.
I'm going to have to check with my ISP and see if they're caching things, 'cause the problem's definitely not within my network.
Makes it hard to debug things! =(
No worries aprelium, the problem isn't yours this time. =) |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Sep 29, 2007 12:29 pm Post subject: |
|
|
Lawrence,
Thank you. Please keep us updated about the issue. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|