views:

243

answers:

1

I asked a question a while ago to sort out my directory structure and you all solved my problem (Thanks!) but im now changing this site to another server and rewrite rule does not work. I cannot find the problem. I sent a support ticked to the hosting and they said:

If that statement doesnt work then it will be either incorrect, or not designed to work with the web server we are running. We use Apache version 2.2

The manual for mod_rewrite for apache 2.2 is here...

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

I have looked over and over this manual and I dont see what the difference is for my rule!

I want to get the text after the url/bank/ and send it to url/bank/index.php as a parameter called title! This rule does work on my other server space so I know that the rule does work!

The rule is:

RewriteEngine on
RewriteRule ^bank/([^/.]+)/?$ bank/index.php?title=$1 [L]

Any pointers would be great!

Thanks Ian

+1  A: 

instead of:

RewriteRule ^bank/([^/.]+)/?$ bank/index.php?title=$1 [L]

try:

RewriteBase /bank/
RewriteRule ^([^/.]+)/?$ index.php?title=$1 [L]
Bala Clark