Jump to content

mod rewrite - i cant get it right~


johnwayne77

Recommended Posts

i'm trying to make search engine friendly links for targbazar.ro but i can't get it right

 

here is the .htaccess i have but no results..

RewriteEngine on
RewriteBase /classifieds/

RewriteRule ^ad([^/]+)\.html/?$   /classifieds/detail.php?id=$1 [L]
RewriteRule ^cat([^/]+)\.html/?$  /classifieds/index.php?catid=$1 [L]
RewriteRule ^user([^/]+)\.html/?$    /classifieds/user_info.php?user_id=$1 [L]

 

i've tried Rewritebase / also but still no result

 

I have checked with the host and they said the rewrite module is enabled (as shown in the phpinfo(); )

 

Any ideas? google seems not to like the .php?id=x pages.. so i cant get my site promoted..

 

Link to comment
Share on other sites

  • 2 weeks later...

could you post an example of the url you are trying to request ? it'd help alot.

 

RewriteBase /classifieds/
RewriteRule ^ad([^/]+)\.html$   classifieds/detail.php?id=$1 [L]

 

requesting http://www.yoursite.com/classifieds/ad34.html would load classifieds/detail.php?id=34

 

if that doesn't work please post a couple of sample urls that aren't working, it'll help alot.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.