Welcome Guest, please login or register.
Username:
Password:

News: Welcome to Hostpapa Forums!
Pages: [1]   Go Down
Topic Tools  
Read
October 31, 2011, 10:11:29 PM
newhost
Newbie
*
Posts: 2



Hi
I have just subscribed to hostpapa and simple things look difficult to do.
Maybe I do wrong with this host but here is my question.
I want to add a htaccess file with the code below
<IfModule mod_rewrite.c>

RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain.com\.com$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

</IfModule>

Basically it's to redirect people not writing www to the www site.
It worked with all my previous hosts and I searching into forum etc and I can't find a solution to make it working or set something in the cpanel or somewhere else.

FYI, I had some problems to read my first index.php file [error 500 every time]. My mistake was to rename the original index.html by index.php ...
Weirdly I had to erase it and re-transfer the same content in a new index.php file. Hope it helps.
Logged
 

Read
November 01, 2011, 09:29:04 AM
MarcPatry
Global Moderator
Sr. Member
*****
Posts: 386

Marc



Hi

you need to submit a ticket to Support at http://www.hostpapasupport.com with details, our technicians can look into this for you

Thank you
Logged
 

Read
November 01, 2011, 03:54:54 PM
newhost
Newbie
*
Posts: 2



Thank you !
I did it this morning.
I noticed that by default, www.domain.com redirect to domain.com, I want the opposite.
It<s not a big deal, but I will check if other settings are able to be completed with a .htaccess file.

Thanks!
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net