Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Htaccess Redirecting Questions


scaggster - 11:35 am on Jan 28, 2013 (gmt 0)


i tried this
RewriteEngine on Options +FollowSymlinks -MultiViews
RewriteCond %{HTTP_HOST} ^subdomain.example.com$
RewriteRule (.*)$ example.com/$1 [R=301,L]
RewriteRule ^(index)$ example.com/examplepage.php [R=301,L,NC]

this works if i want to redirect a content page ie subdomain.example.com/contentpage.php to example.com/contentpage.php it changes correctly but the index page doesnt go to the url im trying to send it to, which would be example.com/examplepage.php

This changes what i originally asked but i hope i make more sense now ( iknow what i mean myself but not easy to specify)


Thread source:: http://www.webmasterworld.com/apache/4537934.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com