Forum Moderators: phranque
I need to insert a front page in one of my larger sites, so my site is going to need a change in the domain.
From serving the content in:
http://example.org
to
http://example.org/en
So my initial plan is to redirect all the site through a 301 redirection, and after a couple of months remove the redirection from the frontpage to insert one.
The problem is, after that 2 months, I suppose that is interesting to maintain the 301 redirect from the interior pages (I donīt want to lose links to articles from other sites). So...
Can I remove the redirection only if the request is for the top path of the domain? (example.org but not example.org/blah)
Any help will be greatly appreciated ;). Thanks in advance, Simon.
Changing all of your URLs risks your pages' rankings and therefore, your traffic and/or revenue. It is not to be done without considering all the alternatives...
Jim
I think that all you want to do is something like this:
Requested URL .............. Serve content from
example.com/ ............... example.com/en/
example.com/blah ........... example.com/blah
example.com/new-index.html . example.com/old-index-page.html
Jim
example.org/[index.php] > example.org/[new_front_page]
example.org/[any_other_url_here] > example.org/es/[any_other_url_here]
RewriteRule ^(index\.php)?$ /new_front_page.php [L]
#
RewriteCond $1 !^new_front_page\.php$
RewriteCond $1 !^es/
RewriteRule ^(.+)$ /es/$1 [L]
Jim
[edited by: jdMorgan at 2:52 pm (utc) on Sep. 13, 2007]