| | |||||
| ||||||||
| Dot MOBI Discussion of the .MOBI TLD |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Feb 2007
Posts: 233
![]() ![]() ![]() | .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 |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jan 2006 Location: Corpus Christi, Texas
Posts: 2,373
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |