PDA

View Full Version : Remove category path in link detail's link


godam64
08-08-2006, 05:52 PM
i'm using esyndicat free 1.5 and i want to make :

http://mydomain.com/business-economy/business-news-asia-l2.html
become
http://mydomain.com/business-news-asia-l2.html

how can i do that stuff?
thanks :friends:

Sergey Ten
08-08-2006, 06:21 PM
Welcome to our support forum godam64,

I do not understand what do you mean. Please post more information.

netizen
08-08-2006, 06:25 PM
Very simple (I hope so...)
Do as follows:

1. Move the link titled "business-news-asia" find inside the "business-economy" category to "Root" Category

2. Delete the category "business-economy" if it is no more used

3. Now you will see what you want.

Simon Gooffin
08-09-2006, 06:12 AM
Ok, there are two possible issues I think:
1. You simply want to move your link to your root category
2. You do not want to display category title in URL to link details page.

In the first case URL will be changed automatically. But note you can not have links in your root category.

The second case. Example:
you have a link titled 'Test Link' in 'Category A'

Your url to the details of this link will look like:
mydomain.com/category-a/test-link-l1.html

I think you would like to have it as follows instead:
mydomain.com/test-link-l1.html

Please clarify and we will advise in details what and where to modify.

godam64
08-09-2006, 03:33 PM
sorry if my question quite confusing.

i need to remove the category path on the url, so it'll look like all link details hosted on main root.

for example :
http://dom.com/cat-a/site-a-detail-l2.html
http://dom.com/cat-b/site-b-detail-l3.html

become :
http://dom.com/site-a-detail-l2.html
http://dom.com/site-b-detail-l3.html

i just think if i move a site to other category, it'll change the link detail's url too. and also if the category level is too deep, the url become so long. i think it will hurt the seo stuff.

my directory is just launched and i think it'll have a lot of new deeper categories and moving some links to new categories in the future.

so i'd like to find a way to remove category path on the url by change something on the script. i dont know what to do since i'm blind with programming stuff :)

my drupal site already using that method, so the url will stay even i move it to other category. i think paid phpld also don't have category path on the link detail's url.

thanks

godam64
08-11-2006, 04:54 PM
any suggestion?

godam64
08-13-2006, 01:24 PM
nevermind :(

after days watching the scripts
i start trying modify something on them
and it totally works :)

thanks

Vincent Wright
08-14-2006, 05:07 AM
Do you mean you implemented the mod yourself or you don't need it anymore?

fwk
08-15-2006, 11:52 AM
I am using free version 1.5 and I need advise on similar change:-

for example :
http://dom.com/cat-a/site-a-detail-l2.html
http://dom.com/cat-b/site-b-detail-l3.html

become :
http://dom.com/cat-a.catid.siteid.html
http://dom.com/cat-b.catid.siteid.html


Can you direct me to the piece of code to change ?

Vincent Wright
08-15-2006, 12:46 PM
I don't quite understand what you want replace with what. What if the link is several categories deep like:

http://www.domain.com/dir/cat-a/cat-aa/cat-aaa/link-details-l1.html

fwk
08-15-2006, 01:27 PM
it will be '.' between each sub-cat instead of using '/' .

http://dot.com/cat-a.cat-aa.cat-aaa.link-detail.html

-or-

if possible :-

use '/' for first-level sub-cat, and use '.' for lower sub-cats

http://dot.com/cat-a/cat-aa.cat-aaa.link-detail.html

billybh
08-28-2006, 03:29 AM
godam64, can you share the mod on this?

I am trying to remove the complete category paths from the view-link file but it is producing errros. Currently the script is set up to display

http://www.yoursite.com/CATEGORY1/SUB-CATEGORY1/SUB-CATEGORY2/SUB-CATEGORY3/LINK-DETAILS.HTML Would love to shorten the URL to:

http://www.yoursite.com/LINK-DETAILS.HTML
Thanks. It would also solve a search engine indexing problem of the link-details-page.html when moved from one category to a different category in the furture.

Vincent Wright
09-07-2006, 12:23 PM
Please check this thread:
http://www.esyndicat.com/forum/about6921.html