ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

help me make Rewrite

June 30, 2007 8:31am

Subscribe [2]
  • #1 / Jun 30, 2007 8:31am

    Erick Flatcher

    27 posts

    Sorry for my english 😉

    my url’s:

    news: site.com/index.php/news/news/1234 (first /news/ - group, second /news/ - template name)
    category: site.com/index.php/news/sport
    archives: site.com/index.php/news/archives

    remove all index.php
    first segment /news/ remove only in first url

    require such url’s:

    news: site.com/news/1234
    category: site.com/news/sport
    archives: site.com/news/archives

    as make rewrite? thx.

    Mod Edit: Moved to more appropriate forum

  • #2 / Jun 30, 2007 9:14am

    Ingmar

    29245 posts

    Having a template group and a template with the same name has a lot of potential for confusion. Anyway, just leave out the default template goupr name: http://example.com/index.php/news/1234 should work.

    As to removing the index.php, there is a lot of information on these forums as well as the wiki, just search for it.

  • #3 / Jun 30, 2007 5:35pm

    Erick Flatcher

    27 posts

    thx!

    ok, I will make a other template for news - jopa: site.com/index.php/jopa/news/1234

    RewriteEngine on
    RewriteCond $1 ^(weblog|member|search|temp1|temp2|temp3|temp7|P[0-9]{2,8}) [NC]
    RewriteRule ^(.*)$ /index.php/$1 [L]
    RewriteRule ^(.*)$ /index.php/jopa/$1 [L]

    its ok?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases