Results 1 to 9 of 9
  1. #1
    New Pligger susur2007's Avatar
    Joined
    Nov 2007
    Posts
    3
    Thanks
    Received:0
    Given: 0

    Smile Remove Category from the URL Structure

    I have been trying to fix this URL Structure problem from past few days and unable to fix it. The Problem or my requirement is

    I have changed Url method to seo friendly urls and now my urls are like this

    http://www.domain.com/Business/this-is-test-post/

    What i want to acheive is

    http://www.domain.com/this-is-test-post/

    I want to remove the category from the url structure, i have tried with html1.php in the libs.

    If ($x == "storycattitle") {return my_pligg_base."/" . $var1 . "/" . $var2 ."/";}

    i removed the variable $var1 and now my url structure displays correctly
    but when i click the url on homepage it is not working, is there anything to do in .htaccess file

    Can some one please help me with the solution.

  2. #2
    New Pligger susur2007's Avatar
    Joined
    Nov 2007
    Posts
    3
    Thanks
    Received:0
    Given: 0

    Thumbs up

    Hey No Pros to answer my question, do the needful guys

  3. #3
    Pligg Donor blaze's Avatar
    Joined
    Sep 2007
    Posts
    192
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by susur2007 View Post
    Hey No Pros to answer my question, do the needful guys
    I was wondering about this as well. I want to remove the word "category" altogether from the url. Why is this in there? It's not needed at all. Can someone help us out with this. It's better for SEO when your category keywords are closer to your domain name structure than farther away. Why can't we just have:

    http://carsite.com/honda/

    rather than

    http://carsite.com/category/honda/

    Links to stories ignore the word category, such as:

    http://carsite.com/honda/1988-civic-crx-for-sale/

    So why not eliminate the word "category" altogether?

  4. #4
    Member newsome's Avatar
    Joined
    Aug 2007
    Posts
    62
    Thanks
    Received:0
    Given: 0
    Hello.

    That would be nice...I'd like to know the answer, too.

  5. #5
    New Pligger ekn33's Avatar
    Joined
    Dec 2007
    Posts
    5
    Thanks
    Received:0
    Given: 0
    support is = zero here or ?

  6. #6
    Banned bbrian017's Avatar
    Joined
    Oct 2007
    Posts
    784
    Thanks
    Received:0
    Given: 0
    From what I have learned if your question doesn't get answered in a days time it means the answer is already somewhere on the forums. Just have a look around!

    Best of luck guys!

  7. #7
    Pligg Donor Divisive Cotton's Avatar
    Joined
    Sep 2007
    Posts
    196
    Thanks
    Received:0
    Given: 0
    yeah, if you question isn't answered the answer is already there.

    Don't expect an answer for every question.

    actually, what I would like is the category and sub-category to be included in the URL. Not the complete removal of categories from the URL.

    I guess the answer for that is already here, but, to be honest, I haven't looked.

  8. #8
    New Pligger susur2007's Avatar
    Joined
    Nov 2007
    Posts
    3
    Thanks
    Received:0
    Given: 0
    I have done enough search on the forums and i beleive there is no answer to the question i have found. My question was to remove the categories from the url structure.

    Good to see some one know the solution for this, i have been working on this but couldnt find the solution.

  9. #9
    Banned pliggedit's Avatar
    Joined
    Dec 2007
    Posts
    26
    Thanks
    Received:0
    Given: 0
    Unless this was a fetaure inculded in the pligg code you might cause yourself some major headaches when upgrading to future versions.

    Worst case scenario would be that the code you might use for v9.8.2 to remove /category from the URL may not work with the next update of pligg. this could leave your site with lots of broken URL's until some kind soul posted updated code.

    Many good hacks for pligg have been broken by updates some have been fixed some remain broken.

    Plan for the long term

Similar Threads

  1. Remove the category from the url
    By foofoo in forum Questions & Comments
    Replies: 0
    Last Post: 09-17-2011, 03:13 AM
  2. Replies: 6
    Last Post: 09-30-2010, 04:56 AM
  3. Remove Category Option
    By FDeFiles in forum Questions & Comments
    Replies: 4
    Last Post: 10-19-2009, 06:35 AM
  4. FIX: Category Name To Lowercase Within URL Structure
    By specialone in forum Questions & Comments
    Replies: 2
    Last Post: 05-30-2009, 05:32 PM
  5. Category structure
    By prasan21 in forum Questions & Comments
    Replies: 0
    Last Post: 01-12-2007, 04:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg