Jump to content

Mhari

Members
  • Posts

    86
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Mhari

  1. Its looks like nothing changed with the url..

     

    I mean is not how to get the url but how to keep the url from being ignored

    the url like main.masaeng.ga mean => /index.php?u=main

     

    If i write main.masaeng.ga/whatever/here/a.php?b=c it still read the url as /index.php?u=main

     

    So its just can read the front one

     

    Sorry if my words is less clear

     

    Any solutions please..  :(

  2. Hi, 

     

    I am found a problem

     

    the urls after the domain are ignored

    for example main.masaeng.ga/haha/hihi/huhu/hoho.php will still in main.masaeng.ga/index.php

    I mean whatever I write after the domain it would be ignored and show me index.php page.

     

    I think this problem appear because something wrong in my .htaccess file

     

    here is the file :

    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteCond %{REQUEST_URI} !index\.php
    RewriteCond %{HTTP_HOST} ^(.+?)\.masaeng\.ga$
    RewriteRule .* /index.php?u=%1 [L]
    

    anyone know what the wrong is?

    please tell me since I do not really understand the code

    thanks in advance  :)

  3. it might could help. but actually i looking for the alternative of it. 
    i mean if user register in my site he will have his own profile page address as a subdomain (like user.masaeng.ga) that not created in the cPanel but as another alias of my domain and i can easily costumize what will be dispayed there (and dynamic data such as users data) and does not require me to get into cpanel (also not fulling up my subdomain list in cpanel).
    please do you have any solutions for this case? such as directing in htaccess or whatever  :unsure:
     
    any help would be helpful for me 
     

     

  4. Hi,
     
    I just want to automatically create a new subdomain in my domain for users that have registered and redirect it to example his profile (his username as a subdomain ex: username.mydomain.com)
     
    I have search tutorials for it and I found to add new A Record that use wildcard for name.
    i found in stackoverflow like shown below:

     

    CzAe6njjRBO3Deqq_2pb0A.png

    Is heliohost support for this?
     
    I have setup it as below:
     
    this is my A Record
     
    uskPU-QvRrOIcUlInU-qbw.png
     
     
    and htaccess:

     

    JTJgnIV5RPqyl3yhqzx01A.png

     

     

    and index file:

     

    axjfVHNfQViLkdxpXteRew.png

     

    and the result my browser got redirected in this page when I use https:

     

    DxqeuhmgQYG59twd4iq-vQ.png

     

    and this page when I not use https:

     

    WE0JVseCSD_zUInkVEf7Fw.png

     

     

    please any solution for this ?

    thanks for reading and answering  :)  :)

     

  5. Hello

     

    i am still wondering about my code that always show same error

    after i am made some changes.

    actually i am run the codes in my localhost in my android phone

    with version: php 5.4 and MySQL 5.1

    and then will be uploaded to my helio account.

    (coding with text editor more easy than with ftp site i think :) )

     

     

    this is my code

     

    if i am run this code:

     

    <?php
    $db = new mysqli("localhost", "root", "", "default_db");
    if ($db->connect_error)
    {
    	die("Connection error");
    }
    else
    {
    	$sql = "SELECT * FROM 'users' WHERE 'nick' = '$u'";
    
    	if ($db->query($sql) === TRUE)
    	{
    		$data = $db->query($sql)->fetch_array();
    		echo $data['email'];
    		
    	}
    	else
    	{
    		echo "Query error: " . $db->error;
    	}
    
    }
    ?>
    
    it will show an error like this:

     

    Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''users' WHERE 'nick' = ''' at line 1
    

    please anyone tell me which the part that wrong

    i am confuse for the last some days up to now because this :(

     

    Thanks in advance.. :)

  6. Is free Tommy accounts registration still open?

    If so, please delete my account on Stevie server to recreating on Tommy..

     

    Username: mhr2

    subdomain: gtup.heliohost.org

     

    Thanks in advance!

×
×
  • Create New...