Search the Community
Showing results for tags 'subdomain'.
-
Hi, I am newbie to htaccess. i am using timthumb for resizing the images RewriteRule ^inner-banner/(.*)\.([jpg|gif|png|JPG|GIF|PNG]+)$ timthumb.php?src=http://mydomain.com/images/banner/$1.$2&h=350&w=960&zc=0 [QSA,L] This gives me the result : http://mydomain.com/inner-banner/myimage.jpg Now i mapped a subdomain to the folder images. http://subdomain.mydomain.com is mapped to the images folder. So now i need to show the above result as http://subdomain.mydomain.com/inner-banner/myimage.jpg i modified the htaccess like RewriteRule ^inner-banner/(.*)\.([jpg|gif|png|JPG|GIF|PNG]+)$ timthumb.php?src=http://subdomain.mydomain.com/banner/$1.$2&h=350&w=960&zc=0 [QSA,L] Expected Result: http://subdomain.mydomain.com/inner-banner/myimage.jpg But it is not coming like that. it shows 404. Kindly help me resolving this issue.
-
Hello, I have a requirement that I need to access php include files from main domain to sub domain on the same server. I tried giving direct path to the file but still i didnt get. Ex : I have a file in following path: www.example.com/folder/includes/file1.php I need to include this file1.php in my subdomain in a index file that is www.subdomain.example.com/index.php Please help me to resolve this.
-
I'm trying to display products specific to a geographic location on the website. E.g. If a user selects city1 then my website url should change to city1.mysite.com. So the city1 part is dynamic on user selection. Please let me know how this is to be achieved and if this includes mod-rewrite or subdomains for each location. Thanks in advance.
- 11 replies
-
- mod_rewrite
- apache
-
(and 2 more)
Tagged with:
-
I had the "pictures" folder in http://xyz.com root directory and the album pictures were displaying correctly based on the below code : define('DOCUMENT_ROOT_PATH',$_SERVER['DOCUMENT_ROOT'].'/'); define('COMING_UP_PICTURES',DOCUMENT_ROOT_PATH.'/'); define('COMING_UP_PICTURES_GALLERY','pictures'); define('RECENT_HISTORY',DOCUMENT_ROOT_PATH.'/'); define('RECENT_HISTORY_GALLERY','pictures'); I recently created http://static.subdomain.com and moved the "pictures" folder into this subdomain, now the pictures wont display. Please help!
-
I have recently restructed my local web server and implemented VirtualHosts for using a subdomain. Currently the public_html is the directory for my domain and dev.domain.com lands in the dev directory, this is all working correctly. however, when I am working in my index.html in the dev directory and call for layout.css which is in static, it retreived the layout.css from the static folder in public_html/ and not the static directory in dev. How can I get around this issue? I have included the directory structure before if that helps. Sorry if my wording for explaining this is confusing. -root --public_html ---static ---etc --subdomains ---dev ----static ----etc ---fate Is the block in the vhost conf NameVirtualHost *:80 <VirtualHost *:80> serverName domain.com DocumentRoot "E:\root\public_html" </VirtualHost> NameVirtualHost *:80 <VirtualHost *:80> ServerName dev.domain.com ServerAlias dev.domain.com DocumentRoot "E:\root\subdomains\dev" <Directory "E:\root\subdomains\dev"> AllowOverride All order allow,deny Allow from all </Directory> </VirtualHost>
- 1 reply
-
- virtualhost
- apache
-
(and 1 more)
Tagged with: