• beelde

    (@beelde)


    Hey guys,

    I’m creating my own gallery management plugin without using post/pages properties. Now it’s time to create the frontend output and I’m stucked with the permalinks.

    My gallery consists of a list of items and if you click on one you will get one step deeper inside a detailed page with more pictures of this gallery.

    My problem is how to generate ?title=Test to a permalink if the title is dynamic:

    http://www.testblog.com/gallery/?title=Text -> http://www.testblog.com/gallery/Text

    It’s fairly not good if I have to create a rewrite rule for every new entry.

    Thanks in advance 🙂

Viewing 1 replies (of 1 total)
  • Thread Starter beelde

    (@beelde)

    Maybe I have post more specific information:

    /gallery/ is a wordpress created page that uses wordpress permalink settings. What I’m trying to do now is to add something behind it like /gallery/Gallery-title that has to lead to /gallery/?title=Gallery-title without changing url.

    This is my current .htaccess:

    # BEGIN Custom
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^portfolio/([-a-zA-Z0-9])$ portfolio/?title=$1 [L]
    </IfModule>
    # END Custom
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wardeski/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wardeski/index.php [L]
    </IfModule>
    # END WordPress
Viewing 1 replies (of 1 total)
  • The topic ‘create own permalinks for dynamic titles’ is closed to new replies.