Jump to content

QUERY_STRING prob


drisate

Recommended Posts

Hey guys,

I am having problems with a query string causing problems with one of my codings in joomla.

 

index.php?mod=registration

 

When mod is equal to registration a script located inside the template replaces the page content by my custom registration form. That part works great. But when the visitor clicks on any other page before clicking my registration link this is added

 

index.php?mod=registration&option=com_content&Itemid=41

 

That causes a 404 page not found error... option and Itemid seems to stick from one page to an other once it's activated.

 

I tryed everything and have abselutly no idea why i have that probleme ... But i thung that is i can redirect from the htaccess that would save the headac from trying to find where it breaks.

 

How can i redirect from the htacess if mod=registration and option to anything and Itemid to anything back to

index.php?mod=registration

Link to comment
Share on other sites

Can you view your joomla code in plain text or is it encrypted??

 

I'm willing to bet there is something in that code on the index.php page that says...

 

if ($_GET['option'] == "com_content")

//redirect to page that you don't have

 

Or something along those lines.  There has to be a redirect in there BEFORE the code looks to see what the value of the passed in $_GET['mod'] is.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.