Reply
Apache mod_rewrite on ZEUS
Old 02-22-2008, 11:19 AM Question Apache mod_rewrite on ZEUS
frofi's Avatar
Extreme Talker

Posts: 210
Location: London
Somebody PLEASE HELP ME!!! I have just discovered my webhost (Namesco) is using ZEUS servers instead of Apache. I was looking for Linux hosting and I have automaticaly assumed that if they offer 2 types of hosting, one would have to be Windows on IIS (which it is) and the other one Linux on Apache servers. Well, guess what? It's on ZEUS!

I’ve no idea how to modify the .htaccess file to make SE friendly URLs work with ZEUS. The mod_rewrite is an Apache module and all I know is that I have to use rewrite.script file instead of .htaccess file on ZEUS. I have tried to use the apache-to-zeus rewrite conversion tool, but I'm getting errors which I can't fix. I have tried to ask people on drupal.org forum but I got no reply at all.

The SEO URL contribution with the rewrite rules in question is made for osCommerce. If there was anyone who could translate the rules into ones that ZEUS can understand, he would help many dissapointed people and be celebrated all over the world until the end of time
Server OS: Linux 2.6.9-55.0.9.ELsmp
HTTP Server: Zeus/4.3
Please help us if you can. The Apache rules from .htaccess are as follows:

Code:
Options +FollowSymLinks
RewriteEngine On 
RewriteBase /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
__________________
www.frofi.co.uk THE FORCE is with me at last! All I need now is some TALKUPATION ;)
frofi is offline
Reply With Quote
View Public Profile Visit frofi's homepage!
 
When You Register, These Ads Go Away!
     
Old 02-22-2008, 01:17 PM Re: Apache mod_rewrite on ZEUS
tripy's Avatar
Fetchez la vache!

Posts: 1,857
Name: Thierry
Location: In the void
http://www.google.com/search?hl=en&s...iting+&spell=1
First result...

Quote:
know that a lot of people that use the Zeus web server are forced into it by their hosting companies (I personally use and love it on its own merits but that's out of place here). Drupal also has some really great styles that make clean URLs very nice and very short. But without support for mod_rewrite in Zeus, you can't use them, until now. I've converted the newest (4.6-newest) rewrite rules into a Zeus rewrite script. I've actually had this for quite a while and never got around to posting it.
http://drupal.org/node/46508

Basically, you need to translate the rules in a Zeus script, and to put them into the administration console of the server.
Now, the question is: Do you have access to the console ?

If not, ask your host, maybe they have a spare machine with apache, and they could move your site on it.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is online now
Reply With Quote
View Public Profile
 
Old 02-22-2008, 08:08 PM Re: Apache mod_rewrite on ZEUS
frofi's Avatar
Extreme Talker

Posts: 210
Location: London
Hi tripy! Thank you for your reply.

I’ve visited both the links before I posted here. Like I have said in this forum some time ago, I only ask for help after I’ve exhausted all other options.

I don’t think I need the access to the console. I could put the rules into a file named “rewrite.script”. I have also asked my host for help. Their “help” would cost me £40 an hour and they didn’t even specify how many hours it would take them to convert it. That is ridiculous if you ask me.

My problem is that I simply do not understand the drupal script (or whatever it is). I have read something about drupal or ZEUS not being able to read from variables or queries (or something like that), which means that a simple conversion from:
Code:
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
into:
Code:
match URL into $ with ^(.*)-p-(.*).html$
if matched then
   set URL =product_info.php?products_id=$2&%{QUERY_STRING}
endif
won’t do the trick. I’ve also no idea how to convert
Code:
Options +FollowSymLinks
RewriteEngine On 
RewriteBase /
although I believe “RewriteEngine On” doesn’t need converting as ZEUS doesn’t use an equivalent.

I am sure there are many skilled programmers who could convert these rules comfortably within minutes.

If one of them reads this post, could you please help me? I would post the translation to osCommerce forum and all the credit will go to you.
__________________
www.frofi.co.uk THE FORCE is with me at last! All I need now is some TALKUPATION ;)

Last edited by frofi : 02-22-2008 at 08:10 PM.
frofi is offline
Reply With Quote
View Public Profile Visit frofi's homepage!
 
Old 03-31-2008, 08:30 AM Re: Apache mod_rewrite on ZEUS
Junior Talker

Posts: 1
Hi
Have you found any solution to this.
I am also sailing in same boat and have no clue.
Let me know.
Thanks
devj is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Apache mod_rewrite on ZEUS
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12942 seconds with 13 queries