![]() |
|
subdomain and www. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: subdomain and www. (/thread-9502.html) |
subdomain and www. - latex spuiten - 2012-01-17 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 ? subdomain and www. - Michel Gagnon - 2012-01-17 You will need to place the following at the beginning of the ".htaccess" file of your website. Remove wwwRewriteCond %{HTTP_HOST} ^www.seminar.spray-it.net [NC] ########################## 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. subdomain and www. - latex spuiten - 2012-01-17 This is the .htacces file in ' seminar" subdomain Were do i place the line you gave me? htaccess file version 1.4.1;When Zenphoto requires changes to the rewrite rules:First make a copy of this file as 'oldhtaccess' in the zp-core folder so setup can test for unmodified filesUpdate the above and the define in setup.phpRewriteEngine On RewriteBase / RewriteRule ^admin/?$ zp-core/admin.php [R,L] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_FILENAME} -f [OR] put no rules before this line####################### Rewrite rules for removed sitemap.phpRewriteRule ^sitemap.php index.php?sitemap [L,R=301] Rewrite rules for removed RSS files
RewriteCond %{QUERY_STRING} withimages&lang=(.*)
RewriteCond %{QUERY_STRING} type=(.)&lang=(.) RewriteCond %{QUERY_STRING} lang=(.*)&albumsmode RewriteCond %{QUERY_STRING} lang=(.)&category=(.) RewriteCond %{QUERY_STRING} lang=(.*) rewrite rule for tinyURLsRewriteRule ^tiny/([0-9]+)/?$ index.php?p=$1&t [L,QSA] RewriteRule index.php$ index.php [L,QSA] Rewrite rule addition for searchRewriteRule ^page/search/fields([0-9]+)/(.)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$3 [L,QSA] Rewrite additions for zenpage
RewriteRule ^pages/(.)/?$ index.php?p=pages&title=$1 [L,QSA] RewriteRule ^(.)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA] Catch-all - everything else gets handled in PHP for compatibility.RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA] subdomain and www. - acrylian - 2012-01-18 Please don't forget to escape code correctly, either by enclosing in 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. subdomain and www. - latex spuiten - 2012-01-18 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 subdomain and www. - acrylian - 2012-01-19 There are loads of resources on the net how to redirect domains using htaccess... |