Force10x - 12:48 am on Oct 1, 2013 (gmt 0)
Damn! So disappointed.
I thought that was "THE" code with no errors and would get a thumbs up from all you guys.
Thanks for correcting the errors and providing reasons as to why they are incorrect.
I am a bit confused now.
are better off expressed as
so that both URLs redirect.
In the above code, won't www.example.com/investors redirect to the same page as www.example.com/investors/index.php?page=16
The current CMS has different content for each of the following urls
and so on.
hence why I want to treat it as a unique url and redirect to the new equivalent page.
I am using RewriteRule ^investors/(.*)$ to redirect anything under investors (other than the queries in RewriteCond)
and investors/ will all direct to /aboutus/companyprofile which is the new page
Change rule target from
as the trailing slash is important.
Isn't trailing slash for directories and folders only? these are not actual directories. The CMS displays pages without file extensions