Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: jfarschman on June 19, 2006, 10:47:38 PM

Title: Building Rewrite Rules in 1 ibay (template help)
Post by: jfarschman 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?
Title: Building Rewrite Rules in 1 ibay (template help)
Post by: davibou 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 :))