NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Domain Name Discussion Forums > Domain Names > Domain Name Discussion > Dot MOBI
Reload this Page .xhtml or .html - htaccess file?

Dot MOBI Discussion of the .MOBI TLD

Advanced Search
2 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 02-19-2008, 09:47 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
pchip's Avatar
Join Date: Feb 2007
Posts: 233
pchip is a jewel in the roughpchip is a jewel in the roughpchip is a jewel in the rough
 



.xhtml or .html - htaccess file?


I have a free hosting account with godaddy and I uploaded my test website to it - index.xhtml. It didn't resolve. It seems that I must modify the htaccess file in my root account. I didn't see this file when I logged into my ftp account so i'm assuming that I need to create one. I think I found what I need but wanted to check with you guys to see if this is normal - does it matter who does the hosting or is this pretty typical.
????: NamePros.com http://www.namepros.com/dot-mobi/434677-xhtml-or-html-htaccess-file.html

I found this courtesy of member akc - under the 'WAP 2.0 Development. Tutorial for NamePros.com' sticky thread...

AddType application/xhtml+xml .xhtml
DirectoryIndex index.html index.xhtml index.php
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite\.mobi [nc]
RewriteRule (.*) http://www.yoursite.mobi/$1 [R=301,L]
RewriteCond %{HTTP_USER_AGENT} .*MSIE.*
RewriteCond %{REQUEST_URI} \.xhtml$
RewriteRule .* - [T=text/html]

Thanks!

pc

update: I uploaded my new .htaccess and it worked!

Now, i'm still curious what everyone else has done to solve this issue. Anybody care sharing their .htaccess file?

Thanks!

pc
pchip is offline  
Old 02-20-2008, 06:58 PM   #2 (permalink)
Senior Member
 
texasgamer's Avatar
Join Date: Jan 2006
Location: Corpus Christi, Texas
Posts: 2,373
texasgamer is a splendid one to beholdtexasgamer is a splendid one to beholdtexasgamer is a splendid one to beholdtexasgamer is a splendid one to beholdtexasgamer is a splendid one to beholdtexasgamer is a splendid one to beholdtexasgamer is a splendid one to beholdtexasgamer is a splendid one to behold
 


Save The Children
You can either modify your .htaccess file (like you did) or just change the name of index.xhtml to index.html
I have use both methods, without any problems noted.
goodluck!
__________________
Sara Palin
texasgamer is offline  
Old 02-20-2008, 07:45 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
pchip's Avatar
Join Date: Feb 2007
Posts: 233
pchip is a jewel in the roughpchip is a jewel in the roughpchip is a jewel in the rough
 



Thanks for the response TexasGamer! Seems silly then to name it xhtml and modify the htaccess file if you can name it html and it works just the same.
pchip is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 11:22 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger