Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
suthra
Joined: Mar 25, 2004
# Posts: 37
|
Posted: 2006-Mar-28 15:15
We give XML And Rss Based on country, occupation, Religion etc.,
Format original 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: 1795
|
Posted: 2006-Mar-29 06:44
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
|
Posted: 2006-Apr-03 09:38
Hi Prowler, thanks for your reply. I changed the url structure of the site and its now working properly
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- 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
|
|