We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

www. redirect htaccess | Forum

Topic location: Forum home » Support » General Questions
Paul
Paul Oct 16 '12
Hello,


I need a redirect from domain.de/oxwall to www.domain.de/oxwall ... i tried different things in htaccess-file, but it didnt work. 


Options +FollowSymLinksRewriteEngine on

AddEncoding gzip .gzAddEncoding gzip .gzip<FilesMatch "\.(js.gz|js.gzip)$">  ForceType text/javascript</FilesMatch><FilesMatch "\.(css.gz|css.gzip)$">  ForceType text/css</FilesMatch>
RewriteCond %{REQUEST_URI} .*/http-bindRewriteRule (.*) /http-bind [L]
RewriteCond %{REQUEST_URI} !^/index\.phpRewriteCond %{REQUEST_URI} !/ow_updates/index\.phpRewriteCond %{REQUEST_URI} !/ow_updates/RewriteCond %{REQUEST_URI} !/ow_cron/run\.phpRewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]RewriteRule (.*) index.php


to this part, i added:


RewriteEngine onRewriteCond %{HTTP_HOST} ^domain\.de [NC] RewriteRule ^(.*)$ http://www.domain.de/oxwall/ [L,R=301]


is there anyone who has an idea?

thanks a lot!

Paul

Alia Team
Alia Oct 17 '12
Paul, can you make sure that you have followed the exact steps specified here  http://www.bluehostforum.com/...nt-to-www-domain-com ?
DeFender
DeFender Oct 18 '12
you have to change the url in config first example.de ->> www.example.de
and in .htaccess add after RewriteEngine On

RewriteCond %{HTTP_HOST} !\.example\.de [NC]
RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
Paul
Paul Oct 19 '12
it obviously even works when i only change the config file. Is this actually enought or should i change parameters in the htaccess as well?
Alia Team
Alia Oct 22 '12
Paul, sorry for confusing you. Changing the URL in config file is enough.