Jump to content

.htaccess - mod_rewrite to zeus rewrite.script


JKG

Recommended Posts

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.

 

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

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.