Forum Moderators: phranque

Message Too Old, No Replies

Mod rewrite help

mod rewrite to another folder

         

renweb123

9:20 pm on Mar 9, 2006 (gmt 0)



Hi Guys

Please help me

Would I also be able to do this:-

If someone looks for index.php or any other page like products.php
then can I rewrite that to site/index.php

So in the browser I will see www.domain.com/products.php but the actual
page will be in site/products.php.

Also what will happen to index.php

here is what I came up with, but it does not work

RewriteRule ^([^/]+)\.(htm¦html¦php¦js)$ /site/$1.$2 [L]

PLease

Thanks
DEvan

jdMorgan

12:13 am on Mar 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DEvan,

Welcome to WebmasterWorld!

First things first:

What, specifically do you mean by this?
> but it does not work

What tests did you do, what were the results, and how did they differ from what you expected?

If you got an error, what was written in your server error log?

Do you already have other working mod_rewrite rules?

In general, there is nothing wrong with your code, but since I don't know your exact requirments, and the code must be very specific to those requirements, I can't tell if there's a practical problem or not.

Jim