- Moderated by:
- Support Team
-
- rank:
-
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 -
- rank:
-
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.
)
-
- rank:
-
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.)
