Forum Moderators: phranque
I have been trying to figure this mod_rewrite thing out for days with no luck. What I need to have done is when a user accesses this URL [domain.com:2095...] or [domain.com:2095...] to be redirected to [domain.com...] Is this even possible?
This is what I have so far, but does not work at all.
RewriteEngine on
Options +FollowSymLinks
Order allow, deny
Allow from all
RewriteCond %{SERVER_PORT} =^2095$
RewriteRule ^.*$ [domain.com...] [L,R]
Thank You,
Lance
Order allow, deny
Allow from all
#
Options +FollowSymLinks
RewriteEngine on
#
RewriteCond %{SERVER_PORT} ^2095$
RewriteRule ^(login)?$ http://example.com/login.php [R=301,L]
Jim