Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    OK, so I have Plogger installed and working, I have it set to do cruft-free urls too.

    I have super simple blog script installed also (from supersimple.org), it's been customised to work with Plogger as the main cms, so there's no worries about them not working together, I've tested it and it works fine.

    So, I need to get my cms to url rewrite the following:
    ssbs-entries.php?entry=1 -> about/
    sscf-contact.php -> contact/

    Any takers on this??

    I know it's not specific to Plogger, but I thought I'd ask anyway! ;)
  2.  
    UPDATE!

    I've added the following to .htaccess:

    RewriteRule ^about$ /about/ [R]
    RewriteRule ^about/$ /ssbs-entries.php?entry=1
    RewriteRule ^contact$ /about/ [R]
    RewriteRule ^contact/$ /sscf-contact.php

    which I've found out is what I need to do to redirect the urls... However, the line in .htaccess (following) is redirecting the urls to Plogger's 404 (as it should):

    RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]

    I need the line above to still work for every url apart from the ones I'm adding...

    The plot thickens... I hope someone can help me??

    Thanks in advance...
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 5th 2009
     
    designermonkey,

    Instead of your code:
    RewriteRule ^about$ /about/ [R]
    RewriteRule ^about/$ /ssbs-entries.php?entry=1
    RewriteRule ^contact$ /about/ [R]
    RewriteRule ^contact/$ /sscf-contact.php

    modify it like this:
    RewriteRule ^about$ /about/ [R]
    RewriteRule ^about/$ /ssbs-entries.php?entry=1 [L]
    RewriteRule ^contact$ /about/ [R]
    RewriteRule ^contact/$ /sscf-contact.php [L]


    The [L] means that is the "last" rule and to stop processing other rules. I think that should work, but if not, I have another idea.
  3.  
    Fantastic, I've been searching for an answer for this and had no luck... Thanks for your help on this. For everyone to see the code is now:

    # BEGIN Plogger
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_URI} !(\.|/$)
    RewriteRule ^.*$ http://dominicmifsud%{REQUEST_URI}/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f

    RewriteRule about$ /about/ [R]
    RewriteRule about/$ /ssbs-entries.php?entry=1 [L]
    RewriteRule contact$ /about/ [R]
    RewriteRule contact/$ /sscf-contact.php [L]

    RewriteRule ^.*$ - [S=2]
    RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
    RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]
    </IfModule>
    # END Plogger



    Just to know, what was the other idea you had??
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 7th 2009
     
    My other idea was just to move them down below the:
    RewriteRule ^.*$ - [S=2]
    like this:
    RewriteRule ^.*$ - [S=4]
    RewriteRule about/$ /ssbs-entries.php?entry=1 [L]
    RewriteRule contact/$ /sscf-contact.php [L]
    RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
    RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]


    I wasn't sure it would work the first way since I hadn't tested it, so the other option is just a variable of the original, but a little less code and I was pretty sure it would work.
    Thankful People: designermonkey
  4.  
    Okay, so your second idea mixed with the first worked. To get Plogger to show collections and albums as well as my additions, I had to use your second idea...