homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Help .htaccess rewrite

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


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)

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.


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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved