Forum Moderators: phranque
I have a problem with redirecting my domain from non-www to www. Now what is happening when i open my site without www it redirects to www.domain.com/public_html ... & shows 404 error ...
And i want to check MOD REWRITE is ON or not how can i check this ... where could i find httpd.conf file from my ftp?
Help me plzzzzzzz
Thanks
To test mod_rewrite, do something like:
RewriteRule ^fake-page\.html$ http://www.webmasterworld.com [R=301,L]
[added] If you're on shared commercial hosting, it is unlikely that you'll have access to httpd.conf from FTP [/added]
Jim
[edited by: jdMorgan at 2:32 pm (utc) on June 12, 2007]
this is the code i hv in .htaccess
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]
i have following folders in my ftp
.filter
.gnupg
.panel
.vmailmgr
public_ftp
public_html
Where to fild httpd.conf and tell me more where to place .htaccess file.
Thanks a lot.
[edited by: jdMorgan at 4:57 am (utc) on June 13, 2007]
[edit reason] example.com [/edit]
Options +FollowSymLinks
RewriteEngine on
#
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
Jim