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-Mar-28 15:15
Edit Message Delete Message Reply to this message



We give XML And Rss Based on country, occupation, Religion etc.,


Formatsadoriginal URL)

For Occupation:

Xml and RSS

mydomain.com/matri_bazz/feed/forum.php?Occupation=SEO&Gender=F&ft=RSS&Occupation_id=12 For RSS

and
mydomain.com/matri_bazz/feed/forum.php?Occupation=SEO&Gender=F&ft=XML&Occupation_id=12 for XML


For Country

mydomain.com/matri_bazz/feed/forum.php?Countr=India&Gender=F&ft=RSS&Country_id=98 For RSS

and
mydomain.com/matri_bazz/feed/forum.php?Countr=India&Gender=F&ft=XML&Country_id=98 For RSS



We would like to have the rewritten URLs like:

mydomain.com/1/SEO/F.rss and mydomain.com/1/SEO/F.xml (For occupation)
mydomain.com/98/India/F.rss and mydomain.com/98/India/F.xml (For country) and so on..,





We had the Following Codes in our .htAccess



RewriteEngine On


RewriteRule ^forum/([^/]+)/([^/]+)/([^/]+).([^/]+)$ /matri_bazz/feed/forum.php?Occupation=$2&Gender=$3&ft=$4&Occupation_id=$1 [L]

RewriteRule ^forum/([^/]+)/([^/]+)/([^/]+).([^/]+)$ /matri_bazz/feed/forum.php?Country=$2&Gender=$3&ft=$4&Country_id=$1 [L]



But only the First line of the Code works., In the ABove Rewritecode, Only Occupation URL's works.,

mydomain.com/forum/1/SEO/F.xml and mydomain.com/forum/1/SEO/F.rss works,

But(other urls like, Country, Education etc., are not working)

mydomain.com/forum/1/India/F.xml and mydomain.com/forum/1/India/F.rss arenot working


Please help us To solve this Problem.


Best regards.,
Sarathy.s



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

View the profile for Prowler Send Prowler a private message

Posted: 2006-Mar-29 06:44
Edit Message Delete Message Reply to this message

Your requirement and your directives don't match.

Apache uses Perl type Regular expressions and you can test the validity with a Perl script before you deploy it in the server.





suthra
Joined: Mar 25, 2004
# Posts: 37

View the profile for suthra Send suthra a private message

Posted: 2006-Apr-03 09:38
Edit Message Delete Message Reply to this message

Hi Prowler, thanks for your reply. I changed the url structure of the site and its now working properly smile


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