# \[Pro\] htacces

**URL:** <https://discourse.softpress.com/t/pro-htacces/23045>\
**Category:** Off Topic\
**Created:** [January 27, 2016, 4:39pm UTC](https://discourse.softpress.com/t/pro-htacces/23045 "2016-01-27T16:39:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 27, 2016, 4:39pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/1 "2016-01-27T16:39:29Z")

</div>

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](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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 27, 2016, 4:40pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/2 "2016-01-27T16:40:59Z")

</div>

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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![Caleb\_G1](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@Caleb\_G1](https://discourse.softpress.com/u/Caleb_G1)\
**Post date:** [January 27, 2016, 5:01pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/3 "2016-01-27T17:01:59Z")

</div>

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](http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/)

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 27, 2016, 6:21pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/4 "2016-01-27T18:21:47Z")

</div>

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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 27, 2016, 8:35pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/5 "2016-01-27T20:35:07Z")

</div>

> 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](https://freewaytalk.softpress.com/person/options)

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 27, 2016, 9:08pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/6 "2016-01-27T21:08:57Z")

</div>

Hi Dave its an Apache server

Erik

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 27, 2016, 10:38pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/7 "2016-01-27T22:38:05Z")

</div>

Try this instead

```auto
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.

```auto
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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 27, 2016, 10:40pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/8 "2016-01-27T22:40:39Z")

</div>

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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 28, 2016, 3:57pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/9 "2016-01-28T15:57:30Z")

</div>

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](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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 28, 2016, 7:48pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/10 "2016-01-28T19:48:45Z")

</div>

> 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](https://freewaytalk.softpress.com/person/options)

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 28, 2016, 7:58pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/11 "2016-01-28T19:58:33Z")

</div>

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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 28, 2016, 8:02pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/12 "2016-01-28T20:02:38Z")

</div>

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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 28, 2016, 8:03pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/13 "2016-01-28T20:03:45Z")

</div>

standard text editor on Imac

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 28, 2016, 10:02pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/14 "2016-01-28T22:02:43Z")

</div>

> 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.](http://www.barebones.com/products/textwrangler/)

D

* * *

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

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 28, 2016, 10:17pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/15 "2016-01-28T22:17:50Z")

</div>

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:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 28, 2016, 10:26pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/16 "2016-01-28T22:26:38Z")

</div>

> 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](https://freewaytalk.softpress.com/person/options)

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 28, 2016, 10:28pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/17 "2016-01-28T22:28:38Z")

</div>

BTW logo’s does NOT have an apostrophe!

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 28, 2016, 10:30pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/18 "2016-01-28T22:30:37Z")

</div>

Don’t understand?

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [January 28, 2016, 10:31pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/19 "2016-01-28T22:31:42Z")

</div>

In the rotating text on your home page

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![Erik](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.softpress.com/u/Erik)\
**Post date:** [January 28, 2016, 10:35pm UTC](https://discourse.softpress.com/t/pro-htacces/23045/20 "2016-01-28T22:35:32Z")

</div>

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

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

[Next page](https://discourse.softpress.com/t/pro-htacces/23045.md?page=2)
