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
https://forums.phpfreaks.com/topic/94544-mod-rewrite-i-cant-get-it-right~/
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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.