I already tried couple solution from Google, but some of them didn't work (at all), others resulted in weird bug, where HTML page was loaded, but assets (CSS and images) didn't. Other times there were too many redirects and page freaked out. I have account on Cloud Flare, but both HTTP and HTTPS sites are accessible and changing setting that should redirect users to HTTPS, doesn't work. So my question is how can I use .htaccess to redirect from (example) `http://www.daniweb.com` and `http://daniweb.com` to `https://www.daniweb.com` To sum it up, if not HTTP, move to HTTPS, and to subdomain `www`. "If …

Member Avatar
Member Avatar
+0 forum 5

Is it possible to create our own hosting using a server computer with good hardware configuration. If we install Linux server or Microsoft server edition like OS inside a computer, will it turn into hosting Server like Hostgator, godaddy etc. For example, If we create a website inside a localhost, server computer, how it will be accessible to other users. I am a php developer.

Member Avatar
Member Avatar
+0 forum 1

Hello, I am trying to remove the www. at the beginning of our domain name via .htaccess. I'm doing it like this: [code]RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R,NC][/code] It seems to word wonderfully. I would like to retain the www. when someone accesses the site securely with https. I found a bit of code on the web that described how to force the www. except on a certain folder ("blog" in this case): [code]RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteRule !^blog(/.*)?$ http://www.domain.com%{REQUEST_URI} [R,L][/code] I thought if I changed it a little, I could make at least a …

Member Avatar
Member Avatar
+0 forum 1

I am helping a friend switch from Godaddy quick shopping cart to magento. Unfortunately the Godaddy cart automatically creates product and catalog URLS. Using caps, dashes and underscores. I can dupe the link text but magento only allows dashes and no caps, I'd rather not use caps or underscores anyway. So from what I understand I can fix this issue with htaccess 301 rewrites? Can anyone please provide examples on how to handle either or both issues, with either a link to an explanation of how this works or if you can explain it yourself that's great. I'm hoping there …

Member Avatar
+0 forum 0

Can any one send me the config setting for jdbc and mysql using apache server setting in netbean. i wanna use jsp with xampp and jdbc

Member Avatar
Member Avatar
+0 forum 6

Hello guys have a nice day.. I have a problem need to be solved, I have upload script which save files in "/uploads" folder everything was going good until my boss decided to move upload file to storage server and need to store all files in "/etc/mnt/storage/uploads" so what should i do, and what changes i Should made to my script or my server configration to achive this.

Member Avatar
Member Avatar
+0 forum 12

Question: I have a new server stood up (Windows 2012) to replace the current 2003 servers. I have Apache 2.4 + PHP 5.6 + MySQL installed for websites to be hosted. I setup Apache, and a virtual host for a test site. I then created a host file entry on my local to point to it. Instead of going to the root of the site, the browser takes me up one level to the parent folder, and gives me a link to go into site folder. Any idea what would cause this behavior? I don't see any difference in config …

Member Avatar
Member Avatar
+0 forum 12

I have Skype installed on my PC, as i knew using port 80 as default. Then, i changed httpd.config to 8080, but my apache not starting After did a little googling, i have to uncheck 443 on Skype setting. My question: is the apache uses 2 ports? And why?

Member Avatar
Member Avatar
+0 forum 2

hi, i create an webapplication with php , i commented the line deny from all in conf file of apache, the users can see the index.php but the problem is: when they click on username and pass therse nothing happens, but on the conexion button it work, its looks like the cursor show on user/pass inputs but when try to put key-char on it it cant move, i seached for this on google dint find, thanks in advance

Member Avatar
Member Avatar
+0 forum 1

Hello, I am installed php 5.3.28 with apache 2.2 and mysql 5.5.38 on windows 64 bit machine, despite configuring php correctly with apache and also enabled the extensions, its not able to recognise the mysql extension loaded. The connection attempt through adodb throws the error "call to undefined function mysql_connect() in adodb\drivers\adodb-mysql.inc.php on line 460". Also the function_exists('mysql_connect') return false; I would appreciate your quick suggestions. thank you.

Member Avatar
Member Avatar
+0 forum 3

i am a bit stuck and dont know whats the quickest and easiest solution. We have one domain name lets say www.example.com , however we have many 3rd part sites that are in the directory /export/sites/htdocs/example/ at the moment all access logs and error logs for the 20+ sites we have are stored in one of these files. I want to split the logging so for example we have www.example.com/test1 to have its seperate access log and error log in its directory: /export/sites/htdocs/example/test1/logs Whats the best way to achieve this

Member Avatar
Member Avatar
+0 forum 4

Hi, I'm thinking of using the htaccess file on my apache server to add a layer of security to the payment processing on my site. I am considering the 2 actions below, not sure how yet, but thats where the trial & error & learning begins. 1. rewrite the url for the files that do the processing i.e. the user completes the payment form at `//mydomain/forms/form.php` On submit the form data is posted to `//mydomain/payment/form_process.php` to process the payment - connect to the payment exchange, make payment, write to Db, etc, etc. I'm hoping I can rewite `//mydomain/payment/form_process.php` to something …

Member Avatar
Member Avatar
+0 forum 6

Hello, I am trying to configure PHP 5.3 on already installed Apache 2.0 on windows machine, using the guidelines mentioned on - http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml So far I have done - LoadModule php5_module "C:/PHP/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/PHP" All these at the right spots in httpd.conf file. I have apache in C:/Apache & PHP in C:/PHP directories. I have also downloaded the right php5apache2.dll and placed at the right directory. Restarted the server. But when I try to start the Apache, it does not start and throws the error - "The requested operation could not be completed" Thank you.

Member Avatar
Member Avatar
+0 forum 12

Hello, I have installed apache 2.2 but when I try to make it listen to 80, I can browse the target page and access denied error is displayed. But when I change the listening port to say 8080, I could browse using this port. I have already tried to check if the port 80 is used by some other service or not using netstat -an But only port 80 is listening to only local address, and process id corresponds to httpd.exe as well. That really surprises, if http.exe starts on port 80 but in the browser access denied error is …

Member Avatar
Member Avatar
+0 forum 1

I installed WAMP server 2.4 the latest one on its website which currently support PHP 5.4 and Apache 2.4. This works successfully. When I tried to downgrade the PHP version to 5.2 or another lower version, the system rejected this downgrading saying my Apache version is not compatible. So, I tried downgrading my Apache version, but it said it couldn't because my PHP version isn't compatible... apparently I am looping without being able to downgrade the PHP. Is there any solution for this?. I would very much appreciate any help on this.

Member Avatar
Member Avatar
+0 forum 5

Hi. I'm still a newbie on apache/linux, so I'm hoping that my problem is relatively easy for more experienced people to solve. I have 4 folders, each containing an .htaccess file to restrict access to the PDF files they contain. My problem is that whenever I edit the content of one of the .htaccess files, all of the other .htaccess files update themselves with the changes I made only to one. Other people have worked on the project before me and must have set up this replication. Contacting the previous developer did not help at all. How/where do I turn …

Member Avatar
Member Avatar
+0 forum 3

Hi, When logged into my Amazon EC2 instances as user ec2-user, I cannot edit/delete files in my web root folder. All files are owned by apache:apache, and I have added ec2-user to the apache group. What am I missing? To sum up: [ec2-user@xxx ~]$ groups ec2-user ec2-user : ec2-user wheel apache [ec2-user@xxx ~]$ id ec2-user uid=222(ec2-user) gid=500(ec2-user) groups=500(ec2-user),10(wheel),48(apache) [ec2-user@xxx ~]$ ls -la /var/www/html total 176 drwxrwxr-x 6 apache apache 4096 Oct 24 00:44 . drwxr-xr-x 3 apache apache 4096 Oct 23 22:51 .. -rwxrwxr-x 1 apache apache 395 Jan 8 2012 index.php If I try to edit or remove index.php …

Member Avatar
Member Avatar
+0 forum 2

I have an issue with `$_SESSION` global across a single domian, on my local machine, running PHP 5.1 build 2600 I'm creating a session in the domain root. $first_name='martin'; $second_name='thorburn'; $login_array=array("first_namet"=>$first, "second_name"=>$second); $_SESSION['login']=$login_array; When I run `print_r($_SESSION['login']);` in the root, I get the expected response "Array ( [first_name] => martin [second-name] => Thorburn ) However, when I run the same `print_r($_SESSION['login']);` in any sub-folder I get an error Notice: Undefined index: login in subfolder\test.php on line 3. I have ensured that `session_start()` is the first line of code in every file, and I ensured all my links and redirects go …

Member Avatar
Member Avatar
+0 forum 3

i want to know whether can i configure visual studio web developer 2010 express edition to work with apache web server instead of ISS?

Member Avatar
Member Avatar
+0 forum 9

Hi all, I am using an apache web server, and this is the raw url: `http://localhost/mysite/index.php?view=contact` how do I convert that to: `http://localhost/mysite/contact/` My current .htaccess is saved in `http://localhost/.htaccess`, and reads as: RewriteEngine On RewriteRule ^mysite/(.*)/$ /mbs/index.php?view=$1 [L] and I get a 500 internal server error? Thanks for the help :)

Member Avatar
Member Avatar
+0 forum 7

Hi all, I'm having some issues with RewriteRules conflicting in my .htacccess file. For starters, here's the file: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On #Start forum rules RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(jpeg|jpg|gif|png)$ /public/404.php [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] #Start wiki rules RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B] </IfModule> I'm running a forum (IPBoard) and a wiki (Mediawiki) and both have basically the same goals. The forum uses friendly URLs by removing index.php …

Member Avatar
Member Avatar
+0 forum 1

i currently using mysql for database i want to use mysqli can any one tell me any other php server is required for it or i can use it in my bitnami wampstack 5.3.17.0 apache server.

Member Avatar
Member Avatar
+0 forum 7

hello i need little help with url rewriting i have page :: www.mysite.com/search.php?q=something desire url structure:: www.mysite.com/q/something .htaccess code :: RewriteRule q/(.*) search.php?q=$1 the above htaccess code work fine but i have little more htaccess code for my site .htaccess code :: RewriteRule www.(.*) web.php?url=$1 desire url structure:: www.mysite.com/www.daniweb.com so now problem is when query is made like www.mysite.com/q/http://www.daniweb.com then parameter http://www.daniweb.com is sent to both htaccess code due to which two php pages mixup in othe another . so please help so that /q/something is only sent to search.php

Member Avatar
Member Avatar
+0 forum 1

Hey, Im a little new to apache and have just installed it on my ubuntu remix netbook, ive got it working fine but for some reason its not doing anything in the .htaccess files, ive created some random directorys inside /var/www/... and put a .htaccess which only has "deny from all" in itjust to mess around and see if its working and it doesnt seem to do anything, i can still access the directory from http://localhost/ this is my apache2.conf file, located at /etc/apache2/apache2.conf I would really love any advice on how i can get .htaccess to work, spent ages …

Member Avatar
Member Avatar
+0 forum 4

I am attempting to host multiple sites on a single server by using virtual hosts however I am having a bit of an issue. A bit of info before I begin, -I am using Ubuntu Server 12.04 -I am using Apache2 -I have two domains and two sites, stored in /var/www/site1 and /var/www/site2 I have put this in my httpd.conf file and from what I understand it should have worked, allowing domain1 to go to site1 and domain2 to go to site2 but instead domain1 and domain2 go to site1 only. NameVirtualHost *80 <VirtualHost *:80> DocumentRoot "/var/www/site1" ServerName domain1.com ServerAlias …

Member Avatar
Member Avatar
+0 forum 6

I have been having some problems with my domain, when it reaches my server the address changes to my IP. I 'own' the domain, "www.domain.com" which is forwared to my router, my router then points it to my server and the pages are displayed e.t.c. Instead of displaying, "www.domain.com/index.php" it displays my IP, "XXX.XXX.XXX.XXX/index.php". This is obviously not what I want and isn't something that a user would expect. As far as I am aware, I shouldn't need to setup a DNS as it is only going to one website? The domain should remain in the URL bar instead of …

Member Avatar
Member Avatar
+0 forum 10

Ok, so I have just set up a server using Ubuntu Server 12.04 but I have hit a bit of a brick wall when attempting to view webpages. I chown'ed the /var/www folder so I could add my files to it and all is working fine from this front but it comes to when I try and display the webpage. My server doesn't seem to like accessing the folders for example in my main folder (/var/www) I have the index and then three other folders, StyleSheets, Resources, and Pages. When accessing the website, the index.php page displays as if it …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I have inherited a web site which is really a bit beyond me ... there's no option though, I've got to figure it out, so ... The whole site uses Apache/Python/Django/Satchmo. I want to set up a sub-domain which uses a simple Apache/PHP set up. I'm guessing that I need to add a virtual host to take care of this configuration. Only thing is, the current virtual host set up is causing me concern because I don't properly understand it and I don't want to break it. It's the *:80 that's particularly bothering me - I get the …

Member Avatar
Member Avatar
+0 forum 1

Keep getting this message and it's rather annoying, google is no help at all. I keep getting a different ID every single time as well. Any help is greatly appreciated. Thanks! Broadcast message from root (Tue Feb 28 08:59:16 2012): FONmon: Apache PID mistmatch -> fpid: 10464 != mpid:

Member Avatar
Member Avatar
+0 forum 1

Hi everybody, I just set up a LAMP server with cPanel/WHM. I then tried to install WordPress, but I received this error: [ICODE]Input file not specified.[/ICODE] I did a search on Google, but nothing relevant turned up. I then posted on the WordPress forum, and somebody told me it is a LAMP problem, and that I should post on a LAMP forum. Any idea what is going on here? I am trying to get this server set up for production this month, so your reply is greatly appreciated. Here is a link to the WordPress forum post (there is some …

Member Avatar
Member Avatar
+0 forum 5

The End.