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

MarkMark Vanilla Staff
edited February 2007 in Vanilla 1.0 Help
Friendly Urls
«134

Comments

  • Hey Mark, do you realise that the .htaccess file comes in as invisible on OS X?
    Maybe it should be called dot_htaccess with a tip in the readme.

    Posted: Tuesday, 27 March 2007 at 12:36PM

  • You really should be using the .htaccess file which comes with Vanilla instead of this one, Wanderer (unless this one gets updated). This one can cause problems in various ways (mostly related breaking other extensions)
  • I didn't see any .htaccess file that came with Vanilla.

    Not even an invisible one!

    Posted: Tuesday, 27 March 2007 at 4:32PM

  • just over write the one by Dinoboff.
  • Huh? Which is the right one to use?
  • MarkMark Vanilla Staff
    I didn't realize that there was an htaccess with the release. Is there? I don't see it in svn and the release archive comes straight from there...
  • MarkMark Vanilla Staff
    Nope - just downloaded it to check and there's nothing (as it should be)...

    AFAIK this add-on is up to date and fully functional.
  • Huh. You're right. I'm sure that there was a .htaccess file in one of the releases though, 1.0.3 perhaps. I think the difference was that at some point there was a version which didn't have this: #Extensions RewriteRule ^extension/$ extension.php [QSA,L] Ah. I did a search, see this comment and the ones after it.

    But I see the Friendly URLs add-on has been updated, and it all looks just fine now. :)
  • Quote: Mark
    pic Nope - just downloaded it to check and there's nothing (as it should be)...
    AFAIK this add-on is up to date and fully functional. pic
    Mark, the .htaccess file in the add-on broke my Dplayer extension.
    I replaced it with Dinoboff's version and it worked again.
    I don't know enough about .htaccess files to pinpoint the problem.

    Posted: Wednesday, 28 March 2007 at 8:09AM

  • Those of you on Mac OS who can't see hidden files, can follow these instructions to make hidden file viewable in finder

    http://www.osxfaq.com/DailyTips/02-2005/02-01.ws
  • I'm kinda new to vanilla and kinda bad at mod_rewrite but I was wondering would it be possible to make the category URLs use the category name rather than the ID ?
  • Mark,
    I've noticed that the discussion URLs don't redirect to automatically add the trailing slash. So, if I e-mailed this discussion URL to someone, and I forgot the trailing slash, it would fail, like this:

    http://lussumo.com/community/discussion/5425/friendly-urls

    ...whereas that url should automatically redirect to:

    http://lussumo.com/community/discussion/5425/friendly-urls/

    Isn't there an easy RewriteRule that redirects to automatically the trailing slash for the discussions?

    EDIT: Weird, I think this is working correctly in the Add-On, but it doesn't seem to be working on this forum.

    Though, I am definitely seeing problems like this one:

    http://lussumo.com/community/search

    ...which needs to redirect to:

    http://lussumo.com/community/search/
  • dan39, I noticed this too but it does not happen on my forum.

    However, I'm using Dinoboff's version of the .htaccess file, don't know it that's the fix though.

    Posted: Friday, 30 March 2007 at 12:18PM

  • Ok i have a couple of doubts here. I appreciate your reply with some help. 1) I'm encountering a problem with Friendly URLs add. When I click the link: myforum.com/search/ or myforum.com/cetegories/ the browser said: HTTP 404 not found but I can still go to those pages with the old URLs search.php and categories.php what is wrong here? 2) the browser still find all the old URLs with .php , it is supposed to happen? Then I have duplicated pages and that is not good. It is something wrong in the .htaccess ?? Pleassssse help
  • check this stuff (if you haven't already)

    1) have mod_rewrite enabled in you httpd.conf file
    2) use the .htaccess file mentioned by wanderer above
    3) if you are using the page manager extension "resync" your tabs (setting>>page management) and click on the link at the bottom of the form.

    I had the same problem and these steps fixed it.

    If that doesn't improve things try an apache restart

    >> "sudo apachectl graceful" should cover it if you are only change the .htaccess
    >> but you might need a full restart if you are changing the httpd.conf file. "sudo apachectl restart"

    if you are messing with these files take a copy or them first so you can revert as you might end up with an apache install that won't restart if you mess it up.

    HTH
  • Thank you for your tip, neilroberts. Unfortunately, the resync trick did not work for me. I had to reconfigure the page manager setting. Adding one queston, can this extension be apply-able on a site running 2-byte language? After applying this extension, when I point a discussion titled with 2-byte language, it reveals the link url something like these, ie "/path/path/-/#item_0" or "/path/path//#item_0". Double / or - between / The result was same with or without .htaccess. It seems that vanilla can not read .htaccess. Something should be wrong with my setting. Circumstances: localhost on Mac OS 10.4.8 Apache 1.3 with mod_rewrite PHP 5.2.0 MySQL 5.0.27 Extensions : Attachments 2.1 Category Jumper 1.0 CategoryRoles 0.5 Extended Application Form 1.0 Forced BBCode 0.1.0 Guest Post 1.4.1 Inline Images 1.3 JQThickBox 1.1.3 JQuery 1.1.4 Members Page 1.2.1 Multi File Upload 1.1 Page Manager 2.4.3 Sidepanel 1.0 Signatures 1.0.1 Transmogrifier 1.2 Vanillacons 1.3
  • Quote: sujang
    pic The result was same with or without .htaccess. It seems that vanilla can not read .htaccess. pic
    It's the web server that reads the .htaccess file, not Vanilla, and no extension should have any effect on the .htaccess file either.
    Is the .htaccess file in the root folder of your forum?

    Posted: Thursday, 5 April 2007 at 8:48AM

  • Thank you for your reply, Wanderer. Yes, I tried some test, putting .htaccess onto /WebServer/Documents/Vanilla/, /WebServer/Documents/, and even onto /WebServer/, and each time I restarted the Server. But the results are all the same.
  • Hello, I'm having problems with this rewrite with subdomains, when my forum URL is something like forums.myweb.com and I click in something, nothing happens, it loads again the forum index. I also tried adding the http://forum.website.cl/ in every single rule, but it still doesn't works. Thanks in advantage, JAC
  • Hi neilroberts, I'm using Dinoboof htaccess and I'm not using the page manager extension. The browser (and search engines) are still finding all the old URLs with .php , it is supposed to happen? Then I have duplicated pages and that is not good. It is something wrong in the .htaccess ?? I have been told the htaccess needs a major clean effort because it is not very good.
Sign In or Register to comment.