Solved

Mod_rewrite problem

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

734 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