Solved

Mod_rewrite problem

Posted on 2006-07-09
2
272 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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

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