1,520 Topics

Member Avatar for
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
317
Member Avatar for Syed Azadar

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 …

Member Avatar for timetraveller1992
0
156
Member Avatar for hdmk

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 …

Member Avatar for illusionhell
0
2K
Member Avatar for lyleholc

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 …

Member Avatar for Taywin
0
267
Member Avatar for martinkorner

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 …

Member Avatar for guruparthi
0
1K
Member Avatar for iamthwee

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 …

Member Avatar for veedeoo
1
2K
Member Avatar for anil14353

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

Member Avatar for Bachu
0
4K
Member Avatar for network18

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() …

Member Avatar for network18
0
662
Member Avatar for munchlaxxx

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 // …

Member Avatar for tapananand
0
341
Member Avatar for vizz

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/');

Member Avatar for Sikander Nasar
0
297
Member Avatar for Mr.M

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 …

Member Avatar for Mr.M
0
410
Member Avatar for Pravesh_1

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

Member Avatar for slyme
0
282
Member Avatar for jonow

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? …

Member Avatar for shophiarajan47
0
896
Member Avatar for FakeTales

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 …

Member Avatar for FakeTales
0
813
Member Avatar for zein1212

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> …

Member Avatar for guruparthi
0
253
Member Avatar for parimalnarayan

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?

Member Avatar for Dani
0
124
Member Avatar for 68thorby68

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 …

Member Avatar for iamthwee
0
323
Member Avatar for cilla

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 …

Member Avatar for cilla
0
898
Member Avatar for patk570

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 …

Member Avatar for diafol
0
339
Member Avatar for mattster

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} …

Member Avatar for mattster
0
351
Member Avatar for joshl_1995

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? …

Member Avatar for joshl_1995
0
680
Member Avatar for Eric_9

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)$"> …

Member Avatar for Arun kumar 47
0
1K
Member Avatar for Eric_9

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 …

Member Avatar for rtrethewey
0
159
Member Avatar for mark103

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 …

Member Avatar for cereal
0
190
Member Avatar for joshl_1995

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] …

1
164
Member Avatar for leap_coder

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 …

0
217
Member Avatar for leap_coder

Hi, I'm facing an issue with Apache proxy module.ProxyPass isn't working.Why is that?Please help me.

Member Avatar for leap_coder
0
245
Member Avatar for jagobandhu

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 …

0
131
Member Avatar for svsathyavishnu
Member Avatar for arafath077

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 …

Member Avatar for arafath077
0
198

The End.