Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Help .htaccess rewrite

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

New User

joined:Aug 7, 2011
posts: 8
votes: 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)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


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)

New User

joined:Aug 7, 2011
posts: 8
votes: 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)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


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)

New User

joined:Aug 7, 2011
posts: 8
votes: 0


g1smd - thank you - Good Karma coming your way.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members