View Full Version : Mod url rewrite $id.html
euwebdirectory
05-29-2006, 02:22 PM
Hi everybody.
I'm looking a mod for convert the url´s like this.
http://www.mysite.net/356.html
categories under this last must be equal
http://www.mysite.net/458.html
and not http://www.mysite.net/356/458.html
I want to change script to phplinkdirectory and i dont want to lost PR and indexed pages ...( Directorio Web)
I need help. i know that time ago there was a mod for this, but i dont find it ...
Regards...
Actually i have PhpLinkdirectory v 2.RC5
bobby9101
05-29-2006, 07:01 PM
i havent tested, but this should work:
backup your files.
and please post in the correct forum.
in main.tpl find:
Content visible to registered users only.
replace with Content visible to registered users only.
that should work for main categories.
and this should work for sub cats:
find in main.tpl
Content visible to registered users only.
replace with
Content visible to registered users only.
remember to backup because this is untested
euwebdirectory
05-29-2006, 11:27 PM
Sorry ... this is the correct place for this post.
http://www.phplinkdirectory.com/forum/showthread.php?t=3822
Thxs bobby9101 but ... it'snt work ...
.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]
main.tpl
...
{* Categories *}
<div id="this"><a href="http:/tidget.com/Websites">Buy and Sell Websites</a> <a href="http://tidget.com/Domains">Buy and Sell Domains</a></div>
<table width="475" border="0" cellpadding="0" cellspacing="2" >
<tr> {foreach from=$categs item=cat name=categs} {if ($smarty.foreach.categs.iteration mod $cats_per_col eq 1 and $cats_per_col gt 1) or $smarty.foreach.categs.first}
<td>{/if}<b><img src="images/arrow.gif" alt=">" /> <span class="title"> <a class="title" href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL}/{else}index.php?c={$cat.ID}{/if}">{$cat.TITLE}</a></span></b> {if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}
{* Display subcategories *}
<p class="subcats"> {if $cat.SUBCATS} {foreach from=$cat.SUBCATS item=scat name=scategs} <a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL}/{$scat.TITLE_URL}/{else}index.php?c={$scat.ID}{/if}"> {$scat.TITLE}</a>, {/foreach} ... {/if} </p>
{if ($smarty.foreach.categs.iteration mod $cats_per_col eq 0 and $cats_per_col gt 1) or $smarty.foreach.categs.last}</td>
{/if} {/foreach} </tr>
</table>
....
Those are my files...
@ auwebdirectory
I have merged the two threads you have started! The next time you start a thread in a the wrong forum, just add a new post asking to move the thread and as soon someone notices it we will do so.
Thanks,
Boby
bobby9101
05-30-2006, 03:36 PM
euwebdirectory, did you get an error? what didn't work?
i need details to improve my post :D
euwebdirectory
05-30-2006, 10:45 PM
Sorry auwebdirectory, next time i´ll be more especific and thxs.
Bobby
There aren´t any error, simply do nothing, i click in link "../867.html" and do nothing ... I remember a post of anybody and i think he change something in include/somefiles... but it was deleted ...
bobby9101
05-31-2006, 02:18 AM
i assume i can't see this live?
euwebdirectory
06-05-2006, 01:26 AM
Hi Bobby, i send you the url by PM ...
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.