Kenny
Newbie


Joined: Sep 04, 2007
Posts: 24
|
Posted:
Fri May 27, 2011 1:30 pm |
|
Found this on my computer and it still need some minor work on it advanced search and maybe you need to change the account and forum to match your set
.htaccess
| Code: |
#NukeC
RewriteRule ^send-ad-([0-9]*).html modules.php?name=NukeC&file=friend&id=$1 [L]
RewriteRule ^save-ad-([0-9]*).html modules.php?name=NukeC&file=adsbox&op=SaveAds&id_ads=$1 [L]
RewriteRule ^edit-ad-([0-9]*).html modules.php?name=NukeC&file=adsbox&op=editposted&id=$1 [L]
RewriteRule ^delete-ad-([0-9]*).html modules.php?name=NukeC&file=adsbox&op=deleteads&id=$1 [L]
RewriteRule ^email-member-ad-([0-9]*).html modules.php?name=NukeC&file=contact&id=$1 [L]
RewriteRule ^advert-disclaimer-([0-9]*).html modules.php?name=NukeC&op=Disclaimer&no=$1 [L]
RewriteRule ^advert-view-ads-([0-9]*).html modules.php?name=NukeC&op=ViewAds&id_catg=$1 [L]
RewriteRule ^advert-view-category-([0-9]*).html modules.php?name=NukeC&op=ViewCatg&id_catg=$1 [L]
RewriteRule ^advert-view-details-([0-9]*).html modules.php?name=NukeC&op=ViewDetail&id_ads=$1 [L]
RewriteRule ^advert-comment.html modules.php?name=NukeC&op=SubmitComment [L]
RewriteRule ^view-adverts.html modules.php?name=NukeC&op=viewads [L]
RewriteRule ^popular-adverts.html modules.php?name=NukeC&op=mostpop [L]
RewriteRule ^search-adverts.html modules.php?name=NukeC&file=search [L]
RewriteRule ^adverts-box.html modules.php?name=NukeC&file=adsbox [L]
RewriteRule ^post-advert.html modules.php?name=NukeC&file=postads [L]
RewriteRule ^search-adverts-advanced.html modules.php?name=NukeC&file=search&op=adv_search [L]
RewriteRule ^search-adverts-advanced-search.html modules.php?name=NukeC&file=search&op=adv_search_do [L]
RewriteRule ^adverts.html modules.php?name=NukeC [L]
|
GT-NukeC.php:
| Code: |
$urlin = array(
"'(?<!/)modules.php\?name=Forums&file=profile&mode=viewprofile&u=([0-9]*)'",
"'(?<!/)modules.php\?name=Your_Account&op=logout'",
"'(?<!/)modules.php\?name=Your_Account'",
"'(?<!/)modules.php\?name=Private_Messages&file=index&mode=post&u=([0-9]*)'",
"'(?<!/)modules.php\?name=Private_Messages&file=reply&send=1&uname=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Private_Messages\"'",
"'(?<!/)modules.php\?name=NukeC&file=friend&id=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&file=adsbox&op=SaveAds&id_ads=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&file=adsbox&op=editposted&id=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&file=adsbox&op=deleteads&id=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&file=contact&id=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&op=Disclaimer&no=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&op=ViewAds&id_catg=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&op=ViewCatg&id_catg=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&op=ViewDetail&id_ads=([0-9]*)'",
"'(?<!/)modules.php\?name=NukeC&op=SubmitComment'",
"'(?<!/)modules.php\?name=NukeC&op=viewads\"'",
"'(?<!/)modules.php\?name=NukeC&op=mostpop'",
"'(?<!/)modules.php\?name=NukeC&file=search'",
"'(?<!/)modules.php\?name=NukeC&file=adsbox'",
"'(?<!/)modules.php\?name=NukeC&file=postads'",
"'(?<!/)modules.php\?name=NukeC&file=search&op=adv_search'",
"'(?<!/)modules.php\?name=NukeC&file=search&op=adv_search_do'",
"'(?<!/)modules.php\?name=NukeC'"
);
$urlout = array(
"forum-userprofile-\\1.html",
"account-logout.html",
"account.html",
"messages-post-\\1.html",
"messages-post-\\1.html",
"messages.html\"",
"send-ad-\\1.html",
"save-ad-\\1.html",
"edit-ad-\\1.html",
"delete-ad-\\1.html",
"email-member-ad-\\1.html",
"adverts-disclaimer-\\1.html",
"advert-view-ads-\\1.html",
"advert-view-category-\\1.html",
"advert-view-details-\\1.html",
"advert-comment.html",
"view-adverts.html\"",
"popular-adverts.html",
"search-adverts.html",
"adverts-box.html",
"post-advert.html",
"search-adverts-advanced.html",
"search-adverts-advanced-search.html",
"adverts.html"
|
|
| |
|
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Fri May 27, 2011 5:25 pm |
|
Kenny,
Wow. I just wanted to ask if it was alright to place them here to and I would have done it, but thank you for doing so. I try to ask the author wherever I can before I create a copy of content.
I did remove the following lines from the .htaccess though as these should already be rewritten from the Your Account, Private Messages and Forums taps which come with ShortLinks:
| Code: |
RewriteRule ^account-logout.html account-logout.html [L]
RewriteRule ^account.html account.html [L]
RewriteRule ^messages-post-([0-9]*).html messages-post-.html$1 [L]
RewriteRule ^messages.html messages.html [L]
|
Thanks again! |
| |
|
spasticdonkey
Newbie


Joined: Sep 05, 2007
Posts: 68
|
Posted:
Sat May 28, 2011 6:32 pm |
|
Looks good For the search taps I think you just have to adjust the order of the search rewrites
| Code: |
RewriteRule ^search-adverts-advanced-search.html modules.php?name=NukeC&file=search&op=adv_search_do [L]
RewriteRule ^search-adverts-advanced.html modules.php?name=NukeC&file=search&op=adv_search [L]
RewriteRule ^search-adverts.html modules.php?name=NukeC&file=search [L] |
| Code: |
"'(?<!/)modules.php\?name=NukeC&file=search&op=adv_search_do'",
"'(?<!/)modules.php\?name=NukeC&file=search&op=adv_search'",
"'(?<!/)modules.php\?name=NukeC&file=search'", |
| Code: |
"search-adverts-advanced-search.html",
"search-adverts-advanced.html",
"search-adverts.html", |
|
| |
|