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.

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.