Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

suthra
Joined: Mar 25, 2004
# Posts: 37

View the profile for suthra Send suthra a private message

Posted: 2006-May-29 10:45
Edit Message Delete Message Reply to this message

Iam trying to redirect
domain.com/classified/subadsresult.php?AT=1&SUBC=8&category=computer&subcategory=computer-games&start=1

To:
domain.com/classifieds/computer/computer-games/181.html

I tried this code:

RewriteRule ^classifieds/[^/]+/[^/]+/[^/]+[^/]+[^/]+.html$ /cassified/subadsresult.php?CAT=$5&SUBC=$4&category=$1&subcategory=$2&start=$3 [L]


The value is not called in the pages properly.
Iam not a tech guy, i learnt something by reading forums like this

Please help on this issue smile.gif

Thanks.,
Sarathy.s



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1835

View the profile for Prowler Send Prowler a private message

Posted: 2006-May-30 09:14
Edit Message Delete Message Reply to this message

I have been saying this many times over in this forum - Check your RegExp statements using a Perl 'evaluator' before you add to the Mod_rewrite directive.





Silv
Joined: Aug 10, 1999
# Posts: 1668

View the profile for Silv Send Silv a private message

Posted: 2006-Jul-28 18:51
Edit Message Delete Message Reply to this message

I'm very very fond of The RegEx Coach ... freeware that helps to check RegEx for you. Still takes a bit of work to get things right, but Prowler's right - it's much easier when you've got something to tell you if you're barking up the wrong tree.



philh
Joined: Sep 14, 2001
# Posts: 3050

View the profile for philh Send philh a private message

Posted: 2006-Jul-28 18:55
Edit Message Delete Message Reply to this message

I,m not at all techie, just an old designer that learned SEO - but I did notice this today:

[link]

I don't know if it's relevant but check it out anyway. HTH

If it is important could someone more technical than I start a thread please?



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1835

View the profile for Prowler Send Prowler a private message

Posted: 2006-Jul-29 06:45
Edit Message Delete Message Reply to this message

Thank you philh for the link.

mod_rewrite is addressed as the Swiss Army Knife when it comes to extending the functionality of the Apache servers. It can do a lot of things with minimal fuss or adding thousands of lines of code.

But it is a double edged sword as well if you are careless with your directives. Sometimes you can bring the server down to its knees with a contrived unending loop.
Bad elements could engineer artificially contrived requests to trigger the vulnerability if your statements are not crafted well enough. In a typical worst case scenario, your server goes into a loop, consuming resources to the point of crashing the server.

Most server admins know this and this is one of the major reasons your host will dump your site.

Fortunately, the required skill to invoke a runaway loop is high and the common script kiddies do not have the wherewithal to trigger one anytime now. Still that does not mean that you can be sloppy in coding.

Some time ago we had spent months working on a content delivery engine which depended on a 404 Error trap and a lengthy mod_rewrite set of directives. The 'engine' worked flawlessly in the development servers and even under beta testing in the production servers. Then someone added just one page of content which brought the servers down. It is the not page which triggered the disaster, but one embedded URL with an accented character. The input module was not adequately sanitized. It is just an example of working with a double edged sword.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions