Now, if I visit by http://photo.mydomain.com, it will jump to http://www.mydomain.com.
How make photo.mydomain.com work?
Who can tell? Thanks!
Now, if I visit by http://photo.mydomain.com, it will jump to http://www.mydomain.com.
How make photo.mydomain.com work?
Who can tell? Thanks!
see here https://developers.oxwall.com/forum/topic/47116
I do what you said. But it does not work. It jump to http://www.aimphotos.com again when I visit via http://photo.aimphotos.com.
The content of .htaccess is:
Options +FollowSymLinks
RewriteEngine On
AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
ForceType text/css
</FilesMatch>
#added to access custom files - sub domains or special folders
#--------
#subdomains and add on domains
#RewriteCond %{HTTP_HOST} !photo.aimphotos.com$
#
# folders
#RewriteCond %{REQUEST_URI} !/photo/viewlist/latest/
#
# files
#RewriteCond %{REQUEST_URI} !/index.php
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
Is there something wrong?
#this is a comment
this is live code
RewriteCond %{HTTP_HOST} !photo.aimphotos.com$
#
# folders
RewriteCond %{REQUEST_URI} !/photo/viewlist/latest/
make it look like that
I have removed "#", but still jump back to www.domain.com
And I will take a look of the solution from bluehost.
Is there any conflict with origin lines in .htaccess?
Now, it is as below:
-----------------------------------------------
Options +FollowSymLinks
RewriteEngine On
AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
ForceType text/css
</FilesMatch>
#added to access custom files - sub domains or special folders
#--------
#subdomains and add on domains
RewriteCond %{HTTP_HOST} !photo.aimphotos.com$
#
# folders
RewriteCond %{REQUEST_URI} !/photo/viewlist/latest/
#
# files
RewriteCond %{REQUEST_URI} !/index.php
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
-----------------------------------------------