SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Curious over dropdown menu

    I have added an unaltered javascript file of the "suckerfish" dropdown menu from A List Apart.

    I also have used .mod_rewrite for the URL to remove the .php.
    Code:
    RewriteRule ^photo-series$ /photo-series.php
    RewriteRule ^photo-series/ /photo-series.php/$1
    While testing my site, I noticed that a '/' after the page name prevents the menu from working.

    Does not work: http://test.twincitiesrailfan.com/photo-series/?id=1 (mouse over 'photos' or 'text' in the menu bar.)

    Does work: http://test.twincitiesrailfan.com/photo-series?id=1

    While the URL is not as neat as I would wish, it works and I don't have to do alot of scripting. I am wondering what the problem is?

  2. #2
    SitePoint Guru
    Join Date
    Apr 2007
    Posts
    813
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe your rewrite rule is not perfectly formed

    Code:
    RewriteRule ^photo-series$ /photo-series.php
    RewriteRule ^photo-series/\?(.*)$ /photo-series.php?$1


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •