1,520 Topics
| |
hello guys, its been a while since I used htaccess file, but I know how to use it. but the only problem I face is when using in this way I have page for view video watch.php?v=qvLqn2NEsOE&title=Networkplus_tutorials.html first I've create rewrite rule in .htaccess file `RewriteRule ^v-(.*)-(.*).html$ watch.php?v=$1&title=$2` so if … | |
hi, how to send email when the server in down in php with cron ? i have 4 server and i want to check every 2 minutes that if any server is down , email send to my gmail account . email send once in 24 hrs not after every … | |
I am an Apache/linux newbie. (Trying to learn this technology...) I setup a Mandrake 10.1 server, and am trying to setup virtual hosting. I created a user and a www folder. Set the www folder permission to 777. I created a virtual server as follows: <VirtualHost *> DocumentRoot "/home/domain/www" ServerName … | |
Hi, I’m pulling out my hair getting Apache/Perl to work and would like some help with getting httpd.conf, Windows path, and other setting correct to run some Perl programs. I’ve set alias, Options, AddHandler, etc. but the simple program below gives permission errors. I’m running a Bitnami WampStack on XP … | |
Hi, I am trying to write a .htaccess script that can redirect any URL on my site (whether it exists or not, including sub-domains) to the index page of that site. For example: example.com/pages/page.htm ---> example.com sub.example.com/page.htm ---> example.com error.example.com/error ---> example.com I've tried a few things with mod_rewrite but … | |
| I have a doubt with my codeigniter .htaccess file. I was hoping there was something I was missing. My question is I need a different .htaccess file for my live server and one for localhost. Locally, I'm using macos and linux, on my live server I am using centos with … |
I want to do a redirection where a user enters their user name in the URL and redirects to their profile, like this: example.com/joe redirects example.com/profile.php?username=joe I want to do it like Facebook does | |
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() … | |
I need help with getting .php files to run in my browser (Chrome). If it's totally php, it just shows the code itself in the browser. And if it's php and html I get something like this: http://i.imgur.com/QwsRiVG.jpg Here is the code: <!DOCTYPE HTML> <html> <head> </head> <body> <?php // … | |
I used following code for hiding **.php** extension but **mail()** function stopped working. What is the problem? RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC] RewriteRule ^ %1 [R,L,NC] RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [L] **Mail function & redirect** mail($to,$subject,$message,$headers); header('Location: http://xyz.com/'); | |
Hi Dw I'm not a master in java and I'm kinder new to it even though I can do certain things in java. I'm developing an object oriented project and I've done with the object class now I want to make the device be able to listen and execute the … | |
I am getting 500 internal server error; here is my .htaccess code AuthName "admin" AuthUserFile "/home/machiner/.htpasswds/public_html/passwd" # mod_pagespeed configuration - Do NOT modify the contents <IfModule pagespeed_module> ModPagespeedDomain * ModPagespeed on </IfModule> # End of mod_pagespeed configuration- Do NOT modify the contents | |
Is it possible to remove the suffix of URLs using the .htaccess file? For example you have [url]http://www.example.com/page.php[/url] can you change it to [url]http://www.example.com/page[/url] without the .php. I want it to work both ways, with the .php and without. Is there a way to do it with the .htaccess file? … | |
| 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 … |
This is my index.php <?php if(!isset($_GET["page"]) || $_GET["page"] == "home"){ if(isset($_GET["txt"])){ include "search.php"; }else{ include "content.php"; } }else if($_GET["page"] == "user" && $_GET["user"]){ include "content_kategori.php"; }else if($_GET["page"] == "kategori" && $_GET["kode"]){ include "content_kategori.php"; }else if($_GET["page"] == "full" && $_GET["kode"]){ include "content_full.php"; }else{} ?> and this is my .htacces <IfModule mod_rewrite.c> … | |
I have two sub-domains associated with my website. I had created these two subdomains to target different locations. But now I want to take down these two subdomains. Can anyone give me the full 410 gone code for .htaccess file? | |
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 … | |
Upon uploading my site files to a GoDaddy hosted website -- with a "coming soon" sort of maintenance page I'm assuming is generated by GD (headline "Future home of something quite cool") -- that's on a shared FTP account for which the root is a different domain and there are … | |
I have a url that is `filemgr.php` when a user navigates to lower levels of said file manager it shows up as `filemgr.php#userfiles/username/Images` Is there a way to just have it show up as `filemgr.php ` with out the rest of the url showing? I am open to .htaccess editing … | |
Dear All, This must be a very common problem, but yet nowhere on the internet wishes to display a working answer. I am in a sticky situation. I have the following .htaccess file on my local webserver: http://localhost/testsite/.htaccess DirectoryIndex home.php?view=home RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} … | |
Hello Community, I was wondering if there is a way to make dynamic email address that'll look like this example example_name1@subdomain.example.com or example_name2@subdomain.example.com the subdomains have been created using .htaccess and a wildcard subdomain. So the "example_name" and "subdomain" would be created dynamically. So can this be done using .htaccess? … | |
I have the following code in my .htaccess file to leverage browser caching (and gzip), however when I run tools such as Google Page speed or Gtmetrix I still am getting the error tha my website is not using leverage browser caching. [Link to my website](www.ericbartolo.com) .htaccess code: <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|pdf|flv|mp3)$"> … | |
I had the following code in my .htaccess file to enable Gzip compression: <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </ifModule> # compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE … | |
Hi guys, I need your help. I have .xml file in download directory on my server. whoever visit my site page (Myxmlfilename.xml) user should be able to download these files and other files should not. I am trying to achieve above but no luck... does anyone know how I can … | |
Hello Community, I'm trying to use dynamic subdomains which works but I'm only wanting .htaccess to to send subdomains without letters, numbers and underscores (_) to the 404 page. Here is my code. Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase / #Remove www. RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [QSA,NC,L] … | |
Hi, In my localhost i'm getting the "500 Internal Server Error".It appears, if i add a htaccess to a website in localhost.It was started to happen recently.I enabled apache proxy module recently.After that only it satrted to happen.I don't know how to disable the proxy module.If anyone can tell me … | |
Hi, I'm facing an issue with Apache proxy module.ProxyPass isn't working.Why is that?Please help me. | |
Will you please help me how can i change my link by .htaccess? My link is like http://localhost/root/?page=index i want to see it as http://localhost/Jagobandhu/index/ when im am in index page or http://localhost/Jagobandhu/contact/ when i am in contact page like as CMS. I have no idea about .htaccess I tried … | |
How to create a apache upload form. . | |
I created a Virtual host using WAMP Server.Its working.But its DB connection not working. <VirtualHost *:80> ServerAdmin webmaster@kiwitravel DocumentRoot "c:/wamp/www/kiwi ServerName kiwitravel.localhost ErrorLog "logs/kiwitravel-error.log" CustomLog "logs/kiwitravel-access.log" common </VirtualHost> DB Connection class Database { const DB_HOST = 'localhost'; const DB_USER = 'root'; const DB_PASSWORD = ''; const DB_NAME = 'admin_kiwi'; public … |
The End.