Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
843 views
in Q2A Core by
I've tested my htacess on http://htaccess.mwl.be/ and it looks fine but when uploaded to the example.com, nothing happens.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://www.newexample.org/$1 [L,R=301,NC]

What am I overlooking?

1 Answer

0 votes
by
remove wold httaccess and reupload new file or upload with ftp from your host cpanel
by
I think you misunderstood.  There is no word htaccess in my code.  When I upload the 4 lines of code, it is ignored no matter what the code is.  I've now even tried simple one line redirects and they do not work.  It has to be something to do with the server which I have no control over nor any contact with except the ability to FTP to it.  I have worked with .htaccess files many times and this is the first time I have not been able to get even a very simple one to work.
...