Koozali.org: home of the SME Server

Building Rewrite Rules in 1 ibay (template help)

Offline jfarschman

  • *
  • 406
  • +0/-0
Building Rewrite Rules in 1 ibay (template help)
« on: June 19, 2006, 10:47:38 PM »
Hello,

I need some template help.  I'm trying to migrate a website to a virtual host ibay on my SME server.  The problem is... this web site needs to do redirection:

RewriteEngine on
RewriteRule ^([^-]+)\.htm$ redirect.php?page=$1.htm
RewriteRule ^([^-]+)\.html$ redirect.php?page=$1.html

These rules will take an URL like:

http://www.specialibay.com/ContactUs.html

and change it to:

http://www.specialibay.com/redirect.php?page=ContactUs.html

Then redirect.php pulls the web page from the mysql DB.

Anybody know how to template this?
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline davibou

  • ****
  • 79
  • +0/-0
Building Rewrite Rules in 1 ibay (template help)
« Reply #1 on: September 09, 2006, 11:43:29 PM »
Think template not needed

try this

# db accounts setprop ibayname AllowOverride All
# signal-event ibay-modify ibayname

and after just create a .htaccess with your rewrite rules

tell me if it works :))