Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RewriteRule Driving me up the wall!

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
GB
Hi,

I'm trying to do a bit of a weird thing here ;) Originally when the site was setup - it was set as "english" for the homepage, and then /french/index.html was a sub-page. However, we now want to "reverse" that (but we need to keep the other URL's the same!)

Now, these 2 works fine when used just have either the first 2, or the last 2 uncommented

Code:
RewriteRule ^/?$ /home/chambr22/public_html/french/index.html [L]
RewriteRule ^index\.html$ /home/chambr22/public_html/french/index.html [L]

RewriteRule ^English/$ /home/chambr22/public_html/index.html [L]
RewriteRule ^English/index\.html$ /home/chambr22/public_html/index.html [L]

It seems like whats happening, is its running the 1st rule - and then after doing that re-direct, its running the next one...

Is there a way to stop this? I've been plugging away at this for ages now, and still no closer to finding a solution :(

Any advice/suggestions would be much appreciated!

TIA

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top