johnwayne77 Posted March 5, 2008 Share Posted March 5, 2008 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.. Quote Link to comment https://forums.phpfreaks.com/topic/94544-mod-rewrite-i-cant-get-it-right~/ Share on other sites More sharing options...
BlueSkyIS Posted March 5, 2008 Share Posted March 5, 2008 i would not have the /? at the end of each .html, e.g. ^ad([^/]+)\.html/?$ should probably be ^ad([^/]+)\.html$ Quote Link to comment https://forums.phpfreaks.com/topic/94544-mod-rewrite-i-cant-get-it-right~/#findComment-484113 Share on other sites More sharing options...
johnwayne77 Posted March 5, 2008 Author Share Posted March 5, 2008 same situation.. i am trying the new version of the php classified script.. maybe that's at fault Quote Link to comment https://forums.phpfreaks.com/topic/94544-mod-rewrite-i-cant-get-it-right~/#findComment-484118 Share on other sites More sharing options...
powerspike Posted March 18, 2008 Share Posted March 18, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/94544-mod-rewrite-i-cant-get-it-right~/#findComment-494672 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.