w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Subdomain Points to Subfolder and need .Htaccess to Redirect to a Wordpress Multi-Site Sub-Site
Well, depending on your provider, you can point your subdomain towards the same directory of your top level domain, i.e.: example.com -> /public_html/ this.example.com -> /public_html/ But your question is not clear about what you are trying to do. Is it a subdomains network or is it a subfolders network? If subdomains, try to change the directory your subdomain points to as in the example above, and create the blog inside wp-admin/network/ If subfolders, then you don't need the subdomain, unless you really want to redirect it to a subfolder just like an easier to remember shortcut, in that case you don't need a RewriteRule, WP takes care of the virtual subfolder.

Categories : Wordpress

How to make a WordPress theme (site) scroll horizontal
It's not as simple as changing one simple setting, you'll have to rework the whole theme. This will get you started: overflow-y:hidden; //hides vertical scrollbar overflow-x:scroll; //always shows horizontal scrollbar

Categories : PHP

Does Azure Point-to-Site or Site-to-Site VPN support cloud services?
I haven't tried personally, but you should be able to do just that by joining your cloud service to a virtual network. See this article for details on how to do this: http://convective.wordpress.com/2012/08/26/windows-azure-cloud-services-and-virtual-networks/.

Categories : Azure

Connect azure web site to on-premise database over site-to-site vpn
Azure Web Sites do not support the Azure Virtual Network (as of 8/22/2013); http://www.windowsazure.com/en-us/manage/services/web-sites/choose-web-app-service/ You will need to create a cloud service deployment instead if you would like to use Virtual Network and access the on-premises database. Once that is done and your firewall is properly configured, it is like you say just a connection string.

Categories : Database

import google spreadsheet to site page and apply site styles to a table tag
My guess was right, this code working — spreadsheet inserting «one in one» and can apply different style: <script> $(document).ready(function() { $('#result').load('-google spreadsheet html import link- #tblMain'); }); </script> All much easier than I expected:)

Categories : Jquery

Unauthorized Access when running `azure site log tail` for a recreated site
Since the website was created by another person, I suggest you reset its credentials. Open the Windows Azure Management Portal. Go to the website's dashboard. Click on "Reset your deployment credentials" and reset the username and password. Click on "Reset your publish profile credentials". Click on "Download the publish profile" and configure the command-line tools with the new profile, username and password.

Categories : Node Js

PostgreSQL: Full text search multitenant site, plus only parts of site
The normal approach would be to create: one full text index: CREATE INDEX idx1 ON dw1_posts USING gin(to_tsvector('english', approved_text)); a simple index on the site_id: CREATE INDEX idx2 on dw1_posts(page_id); another simple index on the page_id: CREATE INDEX idx3 on dw1_posts(site_id); Then it's the SQL planner's business to decide which ones to use if any, and in what order depending on the queries and the distribution of values in the columns. There is no point in trying to outsmart the planner before you've actually witnessed slow queries.

Categories : Postgresql

how to add error document for local site (where index is not in doc root) and live site both in one .htaccess file
In a single htaccess, you can't do this since it works identical to a <Directory> container. Additionally, the ErrorDocument directive doesn't have and conditionals. What you need to do is create a second htaccess file with only an error document directive, which will override the one declared in the document root. Everything else in the document root's htaccess file should still apply.

Categories : Apache

sending post/get request to another site without leaving current site
use simplexml_load_file <?php $xml = simplexml_load_file($your url); print_r($xml); ?> simply you got a array response.

Categories : PHP

CodeIgniter backend site to extend to support frontend site
I will suggest this link for complete solition http://philsturgeon.co.uk/blog/2009/07/Create-an-Admin-panel-with-CodeIgniter On this site 3 methods are given choose which fits your requirements

Categories : PHP

how to better link some sharepoint site(live site) using camelop php tools
It seems as if you made all necessary steps, there is a new guide available here http://www.bendsoft.com/documentation/camelot-php-tools/2_0/installation/ The steps are as follows Install the .NET Connector Install and configure the Integration Toolkit Test with PHP Tools What most users forget is to restart the Camelot SharePoint Integration Service in services.msc after changing it's setup. You can also have a look at this youtube movie, the first two minutes should cover this, http://www.youtube.com/watch?v=mDtvcTnTbeM If this doesn't resolve your issues contact the support of Bendsoft, support@bendsoft.com and someone will help you!

Categories : PHP

Redirect loop in full site to mobile site using session
From what I could get from github page you should be able to make it work like this: index.php session_start(); if ($_GET['fullscreen'] == 'yes') { $_SESSION['fullscreen'] = 1; } else if ($_GET['fullscreen'] == 'no') { $_SESSION['fullscreen'] = 0; } if (false == isset($_SESSION['fullscreen']) && ($_SESSION['fullscreen'] == 0)) { // If session['fullscreen'] has not been set (maybe first visit // or the user does not what in fullscree // check the device and do redirect require_once 'Mobile_Detect.php'; $detect = new Mobile_Detect(); // Any mobile device (phones or tablets). if ( $detect->isMobile() ) { } ... } // Other code here When visiting from mobile, if the user wants the full version, provide an anchor to url with GET pa

Categories : PHP

Is Puppet the right tool for pull-deploying .NET site from TFS with site shut down
For the client infrastructure, I'd shrink-wrap the product with a Windows Installer MSI. The TFS cloud build sever has Windows Installer XML on it and you can use that to build your installer. Deliver the installer to the client and have it do all the work. Just like downloading TFS from MSDN and installing it on an on premises server. You can also publish the MSI on a website and use an autoupdate pattern running on the client to pull it down and execute it.

Categories : Dotnet

Accessing .ASPX page on password protected site from within same site
If you want you can remove authentication for just one page as follows. <location path="mypage.aspx"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location>

Categories : Asp Net

.htaccess if subdomain show www.site.com/subs/. no redirect url must bu sub.site.com
Try adding these rules to the htaccess file in your document root: RewriteEngine On RewriteCond %{HTTP_HOST} ^sub.site.com$ [NC] RewriteCond %{DOCUMENT_ROOT}/sub%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}/sub%{REQUEST_URI} -d RewriteRule ^(.*)$ /sub/$1 [L]

Categories : Apache

site will not redirect to custome page and throw 404 error in asp.net site
You may need to look into Handlers in your web.config . http://msdn.microsoft.com/en-us/library/46c5ddfy(v=vs.100).aspx

Categories : C#

redirect users from desktop site to mobile site based on URL
I think I understand what you are saying: // Make a mobile detect object $detect = new Mobile_Detect(); // Check the device if($detect->isMobile()){ // Here is where you put the page you have // i.e. http://desktopsite.com/specific-page; $location = "http://desktopsite.com/specific-page;"; // We need to swap the url in that $location variable $location = str_replace("http://desktopsite","http://m.mobilesite",$location); // Then to a classic redirect header("Location: {$location}"); }

Categories : PHP

Load Login site instead of the default controller site when no session is set
Try this: class My_Controller extends CI_Controller{ public function __construct() { parent::__construct(); if ( !$this->session->userdata('username') ) { //$this->load->view('login_view'); redirect('My_Controller/login', 'refresh'); } } public function login(){ #load the view here $this->load->view('login_view'); } }

Categories : Codeigniter

Media query to turn site into mobile site
This has nothing to do with the zoom, but with the current width of the window, ( At least in your examples, the same happens when you change your browser's window to a smaller size ) they are most likely using CSS media queries to apply conditional styles depending on the width. Sample ( from first google result http://css-tricks.com/css-media-queries/ ) @media all and (max-width: 699px) and (min-width: 520px), (min-width: 1151px) { body { background: #ccc; } }

Categories : CSS

How can I share a created google maps in my site to another site
That's a pretty open question. Before all, you and your friend should use the same app or at least agree on certain comventions. For example - the map will be a json with properties such as latn lng and zoom. - Another properties should yield strings, integers, floats, arrays and objects - among objects, there could be some mcarrays, circles, polygons, etc. All of them have a map property that would throw a circular reference if you try to stringify the map. There are a lot of other comventions to make in order to be able to flatten the map to make it stringifiable, and on the other side, the equivalent to rebuild the map.

Categories : Jquery

Does Strawberry Perl still wipe out /site/lib and /site/bin contents?
I would just rename C:strawberry to C:strawberry-old before installing the new version. Chances are you could just copy modules from the old installation to the new one (not forgetting to look for bits in the "auto" directories). That said, I would probably just reinstall everything from CPAN anyway to get the latest versions. It helps if you have a .bat file that automates this for your favourite additions.

Categories : Perl

Mobile site links go static
Links don't work in Dolphin Browser, but they work on Firefox and Chrome - Android 4.1 (hover works on click, but it's normal for touch screen). Change .navicon to display: inline-block; - it's a fix for clickability issue in WebKit.

Categories : CSS

SSL on only one page of Wordpress site
In your Wordpress WP-Admin settings, you will have set the URL for the website, which Wordpress will use for handling all URLs (including links to CSS, JS, etc files). Is there any reason you can't run your entire Wordpress website on SSL? It's a much cleaner solution then jumping in and out of SSL for specific pages of your site.

Categories : Wordpress

Optimising a big Wordpress site
With issues like this, the thing to do is take the caching out of the hands of Wordpress, and make the server to the work. Software like Wordpress and Drupal do have their own caching systems, and you should enable them, but even with them in use, there's still a certain amount of overhead for the software to load and serve the page. So I suggest you investigate a server caching engine such as Varnish. This will dramatically reduce the server load for most sites like yours; if you have a lot of requests for the same page over and over, Varnish will take over the caching and Wordpess will never even have to know that the page is being requested. No more loading PHP and the Wordpress core for every request, no more database session with every request. If your back-end CMS software is sta

Categories : PHP

url Canonicalization for wordpress site
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] </IfModule> Try this. And get rid of the top line Redirect 301 / http://www.drwagenberg.com/

Categories : Wordpress

django deployed site not loading static
Shouldn't you be using STATIC_URL and STATIC_ROOT in your urlpattern rather than MEDIA_URL and MEDIA_ROOT? urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

Categories : Django

Hotlinking to my Rails 4 app's assets from a static site
In rails-4, non digested assets are not generated anymore. If you want to hotlink assets, place a copy of image you'll use in public/. To avoid duplication, you can use a symlink pointing to the proper location in app/assets/images/. It's worth noting that rails does a very good job at caching images in browser, and it is usually recommended to add far future timeout for assets caching in front server. So you should probably avoid to hotlink images that are prone to change often.

Categories : Ruby On Rails

Integrate n2cms to static html site
N2CMS doesn't have a feature to import a static HTML site. Currently, the only way to do what you are asking is create a new site based on N2, set up the template using WebForms or ASP.NET MVC, and then copy/paste your existing content into N2CMS. Setup instructions for N2CMS are here: https://n2cmsdocs.atlassian.net/wiki/display/N2CMS/Setting+Up+Your+Environment

Categories : Misc

How can I generate a static site from a Rails project?
You can modify your project using render_to_string for views instead of the usual render. Then I guess a batch file just copying the generated files, your existing javascripts and css will do.

Categories : Ruby On Rails

Static site generator with dynamic components
After more research, I found that Phrozn seems to be able to do it. http://www.phrozn.info/en/documentation/providers/ I hope to hear more from Jekyll's perspective though.

Categories : PHP

Why is IIS allowing access to static files on MVC site?
What do the handler mappings in IIS look like? Static files should have the same mapping as .aspx. Otherwise, they won't be directed to the WIF handler. Also, what is the setting for runAllManagedModulesForAllRequests? Refer : Modules runAllManagedModulesForAllRequests=“true” Meaning.

Categories : Asp Net Mvc

Django CSS Site Wide Static Files
{{STATIC_URL}} has been deprecated (I think) so it's probably rendering css/main.css only. I suggest you configure it as follows: settings.py import os.path PWD = os.path.dirname(os.path.realpath(__file__)) # project root path STATICFILES_DIRS = ( PWD + '/static/', # or project_static, whatever ) base.html {% load static %} <link rel="stylesheet" href="{% static 'css/main.css' %}"> This way you can use relative paths in your settings, and avoid breaking the settings if you move your whole project outside of your home directory. You can use it for every path setting, such as LOCALE_PATHS or TEMPLATE_DIRS. If this doesn't work yet check that you have these settings: STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contri

Categories : CSS

Mod Rewrite Rule for site map.xml on an ExpressionEngine site
Try this code: Options +FollowSymLinks -MultiViews RewriteEngine On RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [NC,R=301,L] RewriteRule ^sitemap.xml/?$ index.php/sitemap/ [NC,L] RewriteCond $1 !^(favicon.ico|robots.txt|index.php|sitemap.xml) [NC] RewriteCond %{REQUEST_METHOD} !=POST [NC] RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteRule ^(.+[^/])$ /$1/ [NC,R=301,L] RewriteCond $1 !^(admin|assets|uploads|favicon.ico|robots.txt|index.php|sitemap.xml) [NC] RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteRule ^(.*)$ index.php?/$1 [NC,L]

Categories : Apache

Megento dev site re-directing to live site URL
Do the below steps in your development server : 1) Check the development server database hostname,username, password in your config.xml file in below path : app/etc/. 2) Open your live server database in any editor and find the live site url entirely. and replace with your development server url with searched result. above two steps will solve your issues. here after it will now solve. 3) Check your .htaccess file in your root folder to check the any redirection rule.

Categories : Magento

CSS Animation works on one site but not personal site
CodePen uses -prefix-free, which is adding the required prefixed properties for this to work in Chrome. You need this CSS: .loader .dot_1 { margin-right: 10px; -webkit-animation: loading 4s ease-in-out infinite; animation: loading 4s ease-in-out infinite; } .loader .dot_2 { -webkit-animation: loading 4s ease-in-out .3s infinite; animation: loading 4s ease-in-out .3s infinite; } .loader .dot_3 { -webkit-animation: loading 4s ease-in-out .6s infinite; animation: loading 4s ease-in-out .6s infinite; } @-webkit-keyframes loading { from { margin-left: 50%; opacity: 0; } 50% { margin-left: 0; opacity: 1; } to { margin-left: -50%; opacity: 0; } } @keyframes loading { f

Categories : CSS

How does IE determine whether a site is an internet or an intranet site?
You can look in File -> Properties. Press Alt to display the menu bar if it's not there. There you can see "Local intranet" or "Internet".

Categories : Internet Explorer

how do I edit my wordpress site navigation
Because the dots have no semantic value I would go for a CSS solution. I would use a:after{content: '&bull;'} Here's a quick example http://jsfiddle.net/5Ahy3/ Alternatively you could use background images.

Categories : PHP

Wordpress add html to Site Title
If you're going to try to directly insert that into the header.php file instead of using the proper wp_enqueue_script() method, then three things need to take place. 1) - You need to make sure this is called after wp_head() 2) - If you're trying to insert html into the document, then you need to use .html() 3) - There may be some conflict, so you should use the no conflict ready handler jQuery(function($){ $("h1#site-title a").html("name<b>surname</b>"); });

Categories : Jquery

Chromecast Receiver URL on Wordpress Site?
Please check if the answer in this question (Chrome-cast Sample App doesn't work) can solve your problem. Basically you need to set AppID in your receiver.html as well.

Categories : Android

Wordpress site extremly slow in IE
I see you load a few scripts in the header, try relocate stuff in footer.php. Only load necessary stuff in the header. Could help. And test without... <!--[if lt IE 9]><script type="text/javascript" src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]--> the to rule out, due it targets the browser where you encounter problems Overall good practice to handpick stuff, disable and check.

Categories : Wordpress



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.