Welcome to WebmasterWorld Guest from 54.167.185.18

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Help .htaccess rewrite

   
5:57 pm on Aug 7, 2011 (gmt 0)



Hello

I would really apreciate some help.

Iím trying to do a simple .htaccess URL rewrite so all pages of my site read as the homepage eg [mysite.com...] for example if I requested www.mysite.com/about.html it would still read as www.mysite.com. Can't get the code to work. Any help would very much appreciated.


Options +FollowSymlinks
RewriteEngine On # Turn on the rewriting engine
RewriteCond %{HTTP_HOST} ^tom-bartlett\.com [NC]
RewriteRule ^(.*)$ [tom-bartlett.com...] [L,R=301]
6:01 pm on Aug 7, 2011 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Can't be done. URLs are defined in links. It is too late to change the URL after the link is clicked.

A rewrite selects the internal filepath to deliver the content based on the requested URL - not the other way around.
6:06 pm on Aug 7, 2011 (gmt 0)



Our company website - www.mediaprintingnow.com - has an intro page as the lead into the main site, which is a really LARGE template website. When we moved our hosting account, we lost the ability to "mask" this long tempalte address from the clients.

Now when clients goto our website and hit "ENTER", they see the long template address at the top.

WE WANT THEM NOT TO SEE THIS!

Our site used to have a "mask" where no matter which link they chose on the site, the address menu always said www.mediaprintingnow.com. This is what we need again

I hope this makes sense! LOL

Thanks for your help!
6:09 pm on Aug 7, 2011 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



You were probably using frames.

That's an incredibly bad idea.

If I want to link to one of your internal pages, I can't.

You can implement SEF URLs. Link to a short URL and set up an internal rewrite to fetch content from a long internal filepath.
6:19 pm on Aug 7, 2011 (gmt 0)



g1smd - thank you - Good Karma coming your way.