I have script running that uses mod re-write for SEF URL's. The problem is that it forces the urls into a weird subdirectory and i just dont like it. I have tried simply deleting the part I didnt want to be in the URL but i just got errors. Here is the original code. The bolded is what I dont want. basically it shows up as: www.yourdomain.com/xzclf/2/posts/8_Jobs/114_Resumes_Jobs_Wanted/ I really dont want the xzclf in there, I wouldnt mind changing it to something else or deleting it all together to something like: www.yourdomain.com/2/ads/8_Jobs/114_Resumes_Jobs_Wanted/ RewriteEngine On RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/posts/([0-9]+)(_[^/]*)?/([0-9]+)(_[^/]*)?/([0-9]+)(_[^/]*)?\.html /index.php?view=showad&adid=$7&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/posts/([0-9]+)(_[^/]*)?/([0-9]+)(_[^/]*)?/page([0-9]*)\.html /index.php?view=ads&catid=$3&subcatid=$5&cityid=$1&page=$7 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/posts/([0-9]+)(_[^/]*)?/([0-9]+)(_[^/]*)? /index.php?view=ads&catid=$3&subcatid=$5&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/posts/([0-9]+)(_[^/]*)? /index.php?view=ads&catid=$3&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/events(/(([0-9]+)-([0-9]+)-([0-9]+)))?/([0-9]+)(_[^/]*)?\.html /index.php?view=showevent&date=$4&adid=$8&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/events/(([0-9]+)-([0-9]+)-([0-9]+))/page([0-9]*)\.html /index.php?view=events&date=$3&cityid=$1&page=$7 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/events/(([0-9]+)-([0-9]+)-([0-9]+)) /index.php?view=events&date=$3&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/events /index.php?view=events&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/images/([^/]+)/([0-9]+)(_[^/]*)?\.html /index.php?view=showimg&posterenc=$3&imgid=$4&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/images/([^/]+)/page([0-9]+)\.html /index.php?view=imgs&posterenc=$3&cityid=$1&page=$4 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/images/page([0-9]+)\.html /index.php?view=imgs&cityid=$1&page=$3 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/images/([^/]+) /index.php?view=imgs&posterenc=$3&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/images /index.php?view=imgs&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/showpost/([0-9]+)(_[^/]*)?\.html /index.php?view=showad&adid=$3&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/showevent/([0-9]+)(_[^/]*)?\.html /index.php?view=showevent&adid=$3&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+)(_[^/]*)?/showimage/([0-9]+)(_[^/]*)?\.html /index.php?view=showimg&imgid=$3&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+) /index.php?view=main&cityid=$1 [QSA] RewriteRule [B]^xzclf[/B]/([-0-9]+) /index.php?view=main&cityid=$1 [QSA] PHP:
RewriteEngine OnRewriteRule ([-0-9]+)(_[^/]*)?/posts/([0-9]+)(_[^/]*)?/([0-9]+)(_[^/]*)?/([0-9]+)(_[^/]*)?\.html /index.php?view=showad&adid=$7&cityid=$1 [QSA]RewriteRule
that doesn't work. it still keeps the xzclf in the url. i've tried that and i've tried replacing the xzclf with something like 'ads' or 'freeads' etc.. and I get an error when i try that. is it possible that another file is conflicting somewhere?
That is what it sounds like; What Tauren stated looks correct. I know this may sound obvious, but your permissions are set correctly right?
what permissions? the SEF urls works fine, its just continually creating the xzclf even when i remove that code.
dragons5, You're using version 4.95.11 of the classifieds script. I would suggest upgrading to 4.97.2 The version you are using will not protect you from hackers. If you purchased the script from XZeroScripts then you will be able to get the latest version for free. There are also instructions on how to remove the xzclf from the url, it's not in the .htaccess file.
not sure what version it is. i purchased this off of someone else as a site and just moved it so i didn't get the docs. if you have that doc about the xzclf i would appreciate it.
dragos5, You would need to have the person you purchased the script from contact X-Zero to initiate the transfer of the license. I can't give you any documentation. Here is their terms of use. http://www.xzeroscripts.com/products/xzero_classifieds/buy.php I could not edit my previous post, I don't have the edit feature turned on. I don't have any idea how to contact admin on this forum either, if you could point me in the right direction I will take care of the post for you.
yeah so i didn't know it was theirs until well after the transfer.. just been sitting on this for sometime.