Members: 16,996
Threads: 38,867
Posts: 159,477
Online: 41

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 24.02.2005, 01:16   #1 (permalink)
Baby Mamber
 
Join Date: Feb 2005
Location: France
Posts: 5
Bionic is on a distinguished road
Default htaccess redirect rewrite php parameter problem

I am using StaticXT to serve up some php pages that would be difficult to incorporate into Mambo properly at the moment. The problem I have is with the standard htaccess file.

I need to divert some of the old pages into the new urls. So I used redirect permanent for a page that looks like mypage.php to the new long staticxt/mambo page - no problem it works fine.

However, if I need to do the same thing with a page that has parameters like mypage.php?filter=Books then I appear to not be able to use redirect, or I am writing it incorrectly. If I try to use a Rewrite rule, it has no effect because the default is looking to send everything unknown to the index page. I have actually been trying to solve this problem for a week with posts on other (ahem) forums, without a single answer. So I am hoping that this forum is friendlier, more knowledgeable, or at least can tell me that I am stupid, or I am asking the wrong question. The htaccess file at the moment looks something like this
Code:
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

#Dodgy rule
#RewriteRule ^/myotherpage\.php?filter=book$ /component/option,com_staticxt/Itemid,41/xt_item,1/staticfile,myotherpage.php/filter,Book

#Redirection of old files

redirect permanent /compweb.php http://www.mysite.com/index.php?option=com_staticxt&staticfile=mypage.php&Itemid=41
As you can see I have commented out the dodgy rule.

By the way, the rule I am having the problem with is shown with a SEF url. JUst trying to keep working on!

Thanks in anticipation!
Bionic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 24.02.2005, 01:20   #2 (permalink)
Senior Mamber
 
doctorj's Avatar
 
Join Date: Jan 2005
Location: California, U.S.A.
Posts: 242
doctorj is on a distinguished road
Send a message via AIM to doctorj Send a message via MSN to doctorj Send a message via Yahoo to doctorj
Question Re: htaccess redirect rewrite php parameter problem

Did you try to use the wrapper instead You can apply a URL a little easier to it.
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin
doctorj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24.02.2005, 01:33   #3 (permalink)
Baby Mamber
 
Join Date: Feb 2005
Location: France
Posts: 5
Bionic is on a distinguished road
Default Re: htaccess redirect rewrite php parameter problem

Thank you very much for such a rapid reply. I am just getting off the floor!

I never actually tried the wrapper because after researching the various forums, it seemed that StaticXT was better? To be fair, it was probably the easiest part of the whole project.

TBH, I think the problem is with the parameters on the url. I can divert to the main staticxt page as indicated without a parameter using redirect in the standard mambo .htaccess file. I may be wrong, but I think you need to use a RewriteRule if there are parameters in order to be able to use regular expressions. But I could be wrong. And as soon as you disable the default rule for index, the whole system comes grinding to a halt, including being able to link to ther pages from main menu etc. So still baffled. But thanks again.
Bionic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24.02.2005, 03:08   #4 (permalink)
Senior Mamber
 
doctorj's Avatar
 
Join Date: Jan 2005
Location: California, U.S.A.
Posts: 242
doctorj is on a distinguished road
Send a message via AIM to doctorj Send a message via MSN to doctorj Send a message via Yahoo to doctorj
Talking Re: htaccess redirect rewrite php parameter problem

No Prob. Wish I could have been of more help.
__________________
until next time,

ThA DoC
www.gotgtek.com
Expose Project Admin
doctorj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01.03.2005, 22:04   #5 (permalink)
Baby Mamber
 
Join Date: Feb 2005
Location: France
Posts: 5
Bionic is on a distinguished road
Default Re: htaccess redirect rewrite php parameter problem

Any takers? Still got the same problem. Thanks
Bionic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Php shop problem ! SIZE Komponenten 4 22.10.2005 22:04
Problem mit Mambo und PHP 4.3.10 S!na Mambo 4.5 Allgemein 6 02.01.2005 18:53
htaccess problem ChicoMendez Mambo 4.5.1 'How Do I' Questions 1 28.10.2004 03:27
problem with registration mail in mambo 4.5.1a maungsoethiha Mambo 4.5.1 'How Do I' Questions 2 19.10.2004 14:53
LogIn Problem bei Mambo in Frame Redirect cflachmann Mambo 4.5 Allgemein 4 25.09.2004 16:09


All times are GMT +2. The time now is 01:51.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.