Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using mod_rewrite to force hyphen in url

Status
Not open for further replies.
Add this to your httpd.conf

* NOTE: You must have mod_rewrite linked with Apache.
Code:
<VirtualHost XXX.XXX.XXX.XXX:80>
    DocumentRoot /[URL unfurl="true"]www/house.car-toon.com/htdocs[/URL]
    ServerAdmin admin@house.cartoon.com
    ServerName [URL unfurl="true"]www.house.cartoon.com[/URL]
    ServerAlias house.cartoon.com

    RewriteEngine On
    RewriteLogLevel 0
    RewriteLog /[URL unfurl="true"]www/house.car-toon.com/log/rewrite_log[/URL]
    RewriteCond %{HTTP_HOST} house.cartoon.com
    RewriteRule ^(.*)$ [URL unfurl="true"]http://house.car-toon.com$1[/URL] [R]

    <Directory />
         Options ALL
         AllowOverride ALL       
         Order allow,deny
         Allow from all
    </Directory>
</VirtualHost>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top