Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

friendly urls

Hello I am new member and just installed vanilla on http://www.eliminateme.com with friendly urls but I don't get urls like here but this way : http://www.eliminateme.com/discussion/5/italian-soldiers-in-iraq-packing-their-bags/#Item_1 You see that #item_1 .... How can I get rid of that Thanks
«1

Comments

  • mmmm ... like this? http://www.eliminateme.com/discussion/5/italian-soldiers-in-iraq-packing-their-bags/
  • edited June 2006
    yes ... It is default with that #item and I want to get rid of that anyone got it to work ?
  • ToivoToivo New
    edited June 2006
    you have this ticked Account Preferences Jump to the last read comment when clicking on discussion topic
  • Toivo : I love it this little vanilla hehe .... This is Great ! Thank you very much for quick response
  • Only issue there istoritve is that now when you go to read a thread you'll have to scroll from the top again. Is it such an issue to have #itemX at the end of the url? You can remove it if you're giving people links but i'd suggest keeping it during normal use...
  • I don't know how it looks to Search engines then ... with item and all that ?
  • The search engine wont see that. Check it out: http://www.google.co.uk/search?q=search+engines+site%3Alussumo.com&btnG=Search&hl=en&safe=off
  • yes I see that now hehe ... thanks
  • blizeHblizeH ✭✭
    Is there a friendly installation guide on how to install friendly URLs anywhere? :)
  • blize, it's very easy providing you have mod_rewrite installed and configured on your server. The readme.txt in the add-on download reads:
    If you have mod_rewrite installed, you need to do two things to get the friendly
    urls:

    1. Open up conf/settings.php and add this:

    $Configuration['URL_BUILDING_METHOD'] = 'mod_rewrite';

    2. Copy the .htaccess file in this add-on to the root folder of your Vanilla
    installation.

    That's it. Browse to your Vanilla installation and enjoy those faux-folder urls.
  • Before you ask, blizeh, i think we do but if not i'll get it put on for you.
  • blizeHblizeH ✭✭
    Ooh, thanks mini! I guess once that's sorted I'll make those changes, thank you :)

    /hugs mini
  • blizeHblizeH ✭✭
    Works a treat, thank you guys!
  • blizeHblizeH ✭✭
    edited June 2006
    Okay, more problems. It breaks the "who's online" links which I've no problem with, but it also breaks the links in the 'Options' category such as sticky, sink, hide or close discussion. Any suggestions on how to fix it please guys? I've got a discussion I want to close but can't atm.
  • edited June 2006
    Have you tried to add these rules:
    #Prevent some little bad effects of Friendly Urls # on relative links in some extensions RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L] RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L] RewriteRule ^(discussions|account|search|post|[0-9]+)/.+/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^(discussions|account|search|post|[0-9]+)/.+/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L]

    If it doesn't work copy here the link that doesn't work.

    //edit: these rules need to be added in the .htaccess of Friendly Urls, in the root folder of your vanilla forum
  • I have updated these rules since your last post in the whosOnline discussion. I installed whosonline, and it work find for me, and I can use the option links.
  • blizeHblizeH ✭✭
    Pardon the ignorance but where do I add those?
  • sorry... In .htaccess, after the other rules
  • blizeHblizeH ✭✭
    Ah okay, I'll add them as soon as I get home, many thanks!
  • blizeHblizeH ✭✭
    Actually I've managed to access the FTP at work without problems, but it's still not working! :\

    My .htaccess file looks a little like this.
This discussion has been closed.