[Pro] htacces

Hi,
I have some problems with a htacces file maybe someone familiar with this?

I use this script on several pages and it working fine

RewriteEngine On RewriteCond %{HTTP_HOST} ^graphicid.nl RewriteRule (.*) http://www.graphicid.nl/$1 [R=301,L]

BUT on my own site I get the following error;

[Wed Jan 27 17:25:23 2016] [alert] [client 66.249.93.25] /var/www/vhosts/50/208707/webspace/httpdocs/graphicid.nl/.htaccess: Invalid command ‘{\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170’, perhaps misspelled or defined by a module not included in the server configuration

Realy don’t know were to look. my webhosting commpany can’t help they say?

Can it be something in my Freeway files?

Thx

Erik

graphicid.nl


offtopic mailing list
email@hidden
Update your subscriptions at:

Oh one more thing;

Name of the post is htacces but I use the the wright way;
.htaccess


offtopic mailing list
email@hidden
Update your subscriptions at:

I’d recommend starting by trying some different methods of achieving the same result. Give this script a shot, it uses slightly different logic: Redirecting non-www to www with .htaccess | dense13.com


offtopic mailing list
email@hidden
Update your subscriptions at:

Hi Caleb,

Already try that,

With the script I use is nothing wrong because it works on other websites ok. I thought it maybe has something to do with Freeway?

Erik


offtopic mailing list
email@hidden
Update your subscriptions at:

I thought it maybe has something to do with Freeway?

More likely the server - is it an Apache server or Windoze/something else?

David


offtopic mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Hi Dave its an Apache server

Erik


offtopic mailing list
email@hidden
Update your subscriptions at:

Try this instead

RewriteEngine On
RewriteCond %{HTTP_HOST} ^graphicid\.nl [NC]
RewriteRule (.*)$ http://www.graphicid.nl/$1 [R=301,L]

But I’m not really sure why you aren’t using the generic version that doesn’t specify the actual domain.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

But dont copy/paste from here - type it.

And when you say your current code works on other sites - are those sites on the same server?

D


offtopic mailing list
email@hidden
Update your subscriptions at:

Note that the forum has added < > angle brackets either side of

<http://www.graphicid.nl/$1>

Take them off


offtopic mailing list
email@hidden
Update your subscriptions at:

Hi Dave,
I typed your code in a new text editor page and saved it to my server as .htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} ^graphicid.nl [NC]
RewriteRule (.*)$ http://www.graphicid.nl/$1 [R=301,L]

But again a new error (blanc screen internal server errror;

[Thu Jan 28 16:44:31 2016] [alert] [client 66.249.93.28] /var/www/vhosts/50/208707/webspace/httpdocs/graphicid.nl/.htaccess: Invalid command ‘{\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170’, perhaps misspelled or defined by a module not included in the server configuration

On the same server at cms.graphicid.nl it is ALSO NOT working but I don’t get an error here?


offtopic mailing list
email@hidden
Update your subscriptions at:

On the same server at cms.graphicid.nl it is ALSO NOT working but I don’t get an error here?

And what happens when you use the generic one?

D


offtopic mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Both not working www.graphicid.nl gets an internal server error
cms.graphicid.nl not

on both urls the acces file is placed right now! so you can see the error

Erik


offtopic mailing list
email@hidden
Update your subscriptions at:

The error is meaningless unless I can see the actual .htacess file.

What text editor are you using?

D


offtopic mailing list
email@hidden
Update your subscriptions at:

standard text editor on Imac


offtopic mailing list
email@hidden
Update your subscriptions at:

standard text editor on Imac

Do you mean ‘TextEdit’? If so is it in plain text mode? - It should be.

Far better with TextWrangler - Free! Bare Bones Software | TextWrangler is now BBEdit -- and still free! It's time to switch.

D


offtopic mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Hi Dave,

finally!! retyped it in textWrangler and guess what;

IT WORKS!!

Thanx for your great support!

Erik


offtopic mailing list
email@hidden
Update your subscriptions at:

retyped it in textWrangler and guess what;

Use a proper Code Editor for Code - TextEdit sucks at it!

D


offtopic mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

BTW logo’s does NOT have an apostrophe!


offtopic mailing list
email@hidden
Update your subscriptions at:

Don’t understand?


offtopic mailing list
email@hidden
Update your subscriptions at:

In the rotating text on your home page


offtopic mailing list
email@hidden
Update your subscriptions at:

Aha, in my language (dutch) we use apostrophe, I use there dutch and english words


offtopic mailing list
email@hidden
Update your subscriptions at: