Solved

Mod_rewrite problem

Posted on 2006-07-09
2
269 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
Comment Utility
try putting those directives inside <Directory> tags (in httpd.conf).
0
 
LVL 4

Accepted Solution

by:
Tol_cv earned 500 total points
Comment Utility
try to add a / before cid and a  $ at the end :

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

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now