Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Mod_rewrite problem

Posted on 2006-07-09
2
Medium Priority
?
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

730 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