JKG Posted August 1, 2011 Share Posted August 1, 2011 hi there. thanks for taking the time to read this post. i was wondering if someone could help me convert this really simple mod_rewrite into zeus. RewriteEngine On RewriteRule ^ses-holdings-([^/]*)\.html$ /new/index.php?page=$1 [L] this is what i have come up with: match URL into $ with ^ses-holdings-([^/]*)\.html$ if matched then set URL = index.php any help appreciated. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/243495-htaccess-mod_rewrite-to-zeus-rewritescript/ Share on other sites More sharing options...
JKG Posted August 1, 2011 Author Share Posted August 1, 2011 i have now got this far: match URL into $ with ^(\/new)/ses\-holdings\-[^/]*\.html$ if matched then set URL = /new/index.php?page=$1 it works in that it doesnt error. but the $1 at the end of the second line isnt correct. how do i carry accross the variable to insert it to page=foo thanks for your help Quote Link to comment https://forums.phpfreaks.com/topic/243495-htaccess-mod_rewrite-to-zeus-rewritescript/#findComment-1250276 Share on other sites More sharing options...
JKG Posted August 1, 2011 Author Share Posted August 1, 2011 if any one was wondering (i doubt they were as this section of the forum is DEAD!) then i got it to work using this: match URL into $ with ^\/new/ses\-holdings\-([^/]*)\.html$ if matched then set URL = /new/index.php?page=$1 endif thanks. Joe. Quote Link to comment https://forums.phpfreaks.com/topic/243495-htaccess-mod_rewrite-to-zeus-rewritescript/#findComment-1250284 Share on other sites More sharing options...
cags Posted August 4, 2011 Share Posted August 4, 2011 Thanks for providing your solution, it could come in handy in the future for somebody else in a similar situation. Although one of the more quiet forums, they still get plenty of daily views by fairly knowledgeable people. The main reason you didn't get a response is likely to be that zeus is pretty rare (I'd never even heard of it). Plus you did solve your own problem in a little over half an hour, which is not exactly a long time for somebody to answer such a question. Quote Link to comment https://forums.phpfreaks.com/topic/243495-htaccess-mod_rewrite-to-zeus-rewritescript/#findComment-1251807 Share on other sites More sharing options...
JKG Posted August 4, 2011 Author Share Posted August 4, 2011 fair enough. i didnt realise zues was so rare, i never had heard of it either, but i just thought that was my inexperience. namesco hosting uses zues, which is a pretty big name. anyway, thanks Quote Link to comment https://forums.phpfreaks.com/topic/243495-htaccess-mod_rewrite-to-zeus-rewritescript/#findComment-1251819 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.