Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Need simple urls help...
  • Posted: 30.05.2005, 20:38
     
    bhuether
    rank:
    Helper Helper
    registered:
     February 2003
    Status:
    offline
    last visit:
    27.03.08
    Posts:
    152
    In htaccess, I have this (one example)

    # 13: Module (old style call) 3 parameters

    RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^-]*)-([^-]+)-([a-zA-Z0-9_]*).html$
    modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6 [L]

    But I need to write the equivalent rewrite for a module with 1 param. I am
    not conversant at all with regular expressions, and it is not clear how to
    adapt the above to

    modules.php?op=modload&name=$1&file=$2&$3=$4

    Help and an explanation would be much appreciated! What would be the corresponding PHP code too?

    thanks,

    brian
  • Posted: 01.06.2005, 05:43
     
    bri
    rank:
    Professional Professional
    registered:
     April 2003
    Status:
    offline
    last visit:
    28.01.07
    Posts:
    771
    geesh is that english?
    there's a function of Xanthia(?) for short URLs, why bother with this?
  • Posted: 14.06.2005, 01:12
     
    ColdRolledSteel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.12.05
    Posts:
    1310
    bri - It's not English, it's Regular Expressions (RegEx). And you have to bother with it because the Xanthia functionality is based on rewrite rules such as these that are written used with RegEx.

    bhuether - Do you still need an answer? (About the time you posted this, I was having a heart attack. icon_smile )
  • Posted: 17.06.2005, 15:45
     
    Dragonuke
    rank:
    Freshman Freshman
    registered:
     May 2005
    Status:
    offline
    last visit:
    03.08.05
    Posts:
    18
    Since discussion is going on here May I add few lines to it! I am using Postnukeblue Xanthia theme the short URL I've checked has phtml extension without prefix dot. But no pages are working.... please help..

    mine version is .750 security 2 patched (manually uploaded and installed one). Thanks.

    .htaccess is blank (which I created after seeing red-letter instruction from Xanthia config.)
  • Posted: 17.06.2005, 19:13
     
    tycho
    rank:
    Helper Helper
    registered:
     January 2003
    Status:
    offline
    last visit:
    04.10.06
    Posts:
    237
    Dragonnuke : there is an .htaccess file somewhere under modules/xanthia/pndocs/shorturls/phtml which you should copy to your websites root.
  • Posted: 17.06.2005, 23:22
     
    Dragonuke
    rank:
    Freshman Freshman
    registered:
     May 2005
    Status:
    offline
    last visit:
    03.08.05
    Posts:
    18

    tycho

    Dragonnuke : there is an .htaccess file somewhere under modules/xanthia/pndocs/shorturls/phtml which you should copy to your websites root.


    Thanks alot!

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula