Hi,
http://seminar.spray-it.net/ this adress works! no problem.
www.seminar.spray-it.net this does not work and gives message that setup script is missing...
How can i redirect the www.seminar.spray-it.net or how can i resolve this issue ?
seminar.spray-it.net
?
You will need to place the following at the beginning of the ".htaccess" file of your website.
RewriteCond %{HTTP_HOST} ^www.seminar.spray-it.net [NC]
RewriteRule ^(.*)$ http://seminar.spray-it.net/$1 [R=301]
##########################
The NC parameter means that the rule applies with mixed-case letters, and the R=301 means it's a permanent redirect (i.e. Google will consider that your site doesn't use a www prefix.
This is the .htacces file in ' seminar" subdomain
Were do i place the line you gave me?
RewriteEngine On
RewriteBase /
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^albums/?(.+/?)?$ $1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
#######################
RewriteRule ^sitemap.php index.php?sitemap [L,R=301]
RewriteCond %{QUERY_STRING} albumtitle=(.*)&albumname=(.*)&lang=".$lang
RewriteRule ^rss\.php/?$ index.php?rss&albumtitle=%1&albumname=%2&lang=%3 [L,R=301]
RewriteCond %{QUERY_STRING} albumtitle=(.*)&folder=(.*)&lang=(.*)
RewriteRule ^rss\.php/?$ index.php?rss&albumtitle=%1&folder=%2&lang=%3 [L,R=301]
RewriteCond %{QUERY_STRING} albumtitle=(.*)&albumname=(.*)&lang=(.*)
RewriteRule ^rss\.php/?$ index.php?rss&albumtitle=%1&albumname=%2&lang=%3 [L,R=301]
RewriteCond %{QUERY_STRING} folder=(.*)&lang=(.*)&albumsmode
RewriteRule ^rss\.php/?$ index.php?rss&folder%1&lang=%2&albumsmode [L,R=301]
RewriteCond %{QUERY_STRING} withimages&lang=(.*)
RewriteRule ^rss-news.php/?$ index.php?rss-news&withimages&lang=%1 [L,R=301]
RewriteCond %{QUERY_STRING} id=(.*)&title=(.*)&type=(.*)&lang=(.*)
RewriteRule ^rss-comments\.php/?$ index.php?rss-comments&id=%1&title=%2&type=%3&lang=%4 [L,R=301]
RewriteCond %{QUERY_STRING} type=(.)&lang=(.)
RewriteRule ^rss-comments.php/?$ index.php?rss-comments&type=%1&lang=%2 [L,R=301]
RewriteCond %{QUERY_STRING} lang=(.*)&albumsmode
RewriteRule ^rss.php/?$ index.php?rss&lang=%1&albumsmode [L,R=301]
RewriteCond %{QUERY_STRING} lang=(.)&category=(.)
RewriteRule ^rss-news.php/?$ index.php?rss-news&lang=%1&category=%2 [L,R=301]
RewriteCond %{QUERY_STRING} lang=(.*)
RewriteRule ^rss.php/?$ index.php?rss&lang=%1 [L,R=301]
RewriteRule ^rss-news.php/?$ index.php?rss-news&lang=%1 [L,R=301]
#######################
RewriteRule ^tiny/([0-9]+)/?$ index.php?p=$1&t [L,QSA]
RewriteRule index.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-]+)/([0-9]+)/?$ index.php?p=$1&page=$2 [L,QSA]
RewriteRule ^(.)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^(.)/page/([A-Za-z0-9_-]+)/?$ index.php?album=$1&p=$2 [L,QSA]
RewriteRule ^page/search/fields([0-9]+)/(.)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$3 [L,QSA]
RewriteRule ^page/search/fields([0-9]+)/(.)/?$ index.php?p=search&searchfields=$1&words=$2 [L,QSA]
RewriteRule ^page/search/archive/(.)/([0-9]+)/?$ index.php?p=search&date=$1&page=$2 [L,QSA]
RewriteRule ^page/search/archive/(.)/?$ index.php?p=search&date=$1 [L,QSA]
RewriteRule ^page/search/tags/(.)/([0-9]+)/?$ index.php?p=search&searchfields=tags&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/tags/(.)/?$ index.php?p=search&searchfields=tags&words=$1 [L,QSA]
RewriteRule ^page/search/(.)/([0-9]+)/?$ index.php?p=search&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/(.)/?$ index.php?p=search&words=$1 [L,QSA]
RewriteRule ^pages/?$ index.php?p=pages [L,QSA]
RewriteRule ^pages/(.)/?$ index.php?p=pages&title=$1 [L,QSA]
RewriteRule ^news/?$ index.php?p=news [L,QSA]
RewriteRule ^news/([0-9]+)/?$ index.php?p=news&page=$1 [L,QSA]
RewriteRule ^news/category/(.)/([0-9]+)/?$ index.php?p=news&category=$1&page=$2 [L,QSA]
RewriteRule ^news/category/(.)/?$ index.php?p=news&category=$1 [L,QSA]
RewriteRule ^news/archive/(.)/([0-9]+)/?$ index.php?p=news&date=$1&page=$2 [L,QSA]
RewriteRule ^news/archive/(.)/?$ index.php?p=news&date=$1 [L,QSA]
RewriteRule ^news/(.)/?$ index.php?p=news&title=$1 [L,QSA]
RewriteRule ^(.)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.)/image/([^/\]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA]
RewriteRule ^(.*)/album/(thumb|[0-9]{1,4})/([^/\]+)$ zp-core/i.php?a=$1&i=$3&s=$2&album=true [L,QSA]
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
Please don't forget to escape code correctly, either by enclosing in back ticksor [code][/code]. It took some time to notice your question.
Put the code right at the beginning of the htaccess file. Or for more overview, if you install all sites (sub or main domains) in folders place only a htaccess file within the root and redirect them all using that.
I have posted my .htacces file...
Could you post a .htacces in this forum with the rules ...
Then i can upload to server, i dont know were to enter the code in the htacces file...
Thank you