Hi dear mates The following code is a snapet from my .htaccess file: The problem is, if the generated html address has to much "_" signs (or combinations of "_TEXT_"), the CatID will interpretaded as 10 instead of 102 (as example). I tested some addresses for this cognition. However, I'm sure there is a way to improve my RewriteRule. I'm not a RegEx Expert and my time is running ^^ so I decided to create this post. Best regards, Sonrahton
if your catid contains no _ you can try this: RewriteRule ^([^_]+)_(.+).html$ ./index.php?CatID=$1&urltitle=$2 [L] Code (markup): if your catid contains only numbers you can try this: RewriteRule ^([0-9]+)_(.+).html$ ./index.php?CatID=$1&urltitle=$2 [L] Code (markup):
Yess, it worked. I used the solution from premiumscripts but good to see another solution(s). Thanks very much, Sonrahton
After I worked more on my project, I needed to use the solution from Sudoku-Master, becuase: - ModRewrite shall just be active..if there is an ID in the URL. Otherwise you could have problems if you use templates with TinyMCE. Greetings, Sonrahton