can this be done?

Discuss practical ways rearrange URLs using mod_rewrite.

can this be done?

Postby papi » Tue Aug 26, 2003 7:21 am

Hello,

domain.com is the main domain for my account and I parked domain.com.au on top of it.

Can I somehow use mod_rewrite to achieve the following effect:

When someone comes to domain.com.au (with or without www) they are simply redirected to domain.com/section/aus.html

Please help I've been at it all day without any success ! Thanks
papi
 

Postby masahji » Sun Sep 14, 2003 11:29 am

If I understand you correctly, you would like:

http://domain.com.au -> http://domain.com/section/aus.html AND
http://www.

this can be done with the following rewrite rules

RewriteEngine on
RewriteCond %{HTTP_HOST} !^(www.|)domain.com.au
RewriteRule (.*) http://domain.com/section/aus.html

Hope this works for you
masahji
 


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 19 guests

cron