Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Mod_rewrite problem

Posted on 2006-07-09
2
Medium Priority
?
276 Views
Last Modified: 2010-03-04
Hi Experts
             We are running a B2B directory website http://www.biz2tradeleads.com .. As we use php language so most of our urls are not search engine friendly for google .. therefore we try mod_rewrite method but we have found couple of issues ..we want to fix them . we apply this method on one page http://biztradeleads.com/cat_sell.php?cid=57 and we get new page http://biztradeleads.com/cid/57
here's the structure of .htaccess file

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^cid/([0-9]+)  /cat_sell.php?cid=$1
RewriteRule ^.+/images/?(.*)$ /images/$1 [R=301,L]

but when we visit http://biztradeleads.com/cid/57 we were not able to retrive any url on that page also some images in root directory missing and u can clearly see them.
can you please provide us urget solution

0
Comment
Question by:thomas9999
2 Comments
 
LVL 9

Expert Comment

by:jhshukla
ID: 17075668
try putting those directives inside <Directory> tags (in httpd.conf).
0
 
LVL 4

Accepted Solution

by:
Tol_cv earned 1500 total points
ID: 17083011
try to add a / before cid and a  $ at the end :

RewriteRule ^/cid/([0-9]+)$  /cat_sell.php?cid=$1

0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question