224 Topics

Member Avatar for
Member Avatar for amith_ami

hi all.. using .htaccess how to rewrite this http://mydomain/page-name/ to http://mydomain/page-name.html ? pls help me to solve this... tnx in advnc.

Member Avatar for amith_ami
0
130
Member Avatar for Dieter_1

I have just installed xampp on a windows 7 os and downloaded my working web application into C:/xampp/htdocs/myweb calling the website with localhost/myweb brings up the home page try calling a specific page like localhost/myweb/about.html is redirected to localhost/xampp/ calling a specific page with localhost/myweb/index.php?include=about shows the correct page I …

Member Avatar for Dieter_1
0
9K
Member Avatar for cambraydesign

I have a WordPress multisite using subdomains. I have created a new website, not using wordpress, which is on the root in a folder called 'home' I am trying to remove the 'home' from the url so that it appears that this folder is the root eg. mydomain.com instead of …

Member Avatar for cambraydesign
0
343
Member Avatar for mattster

Hi All, Over the years I have smashed through God knows how many brick walls with `.htaccess`, and all I've learnt is don't even try to make it complicated as nothing is ever simple. I have therefore resorted in recent applications to using `mysite.com/index.php/category/sub-category/create/` etc. and PHP to get hold …

Member Avatar for mattster
0
327
Member Avatar for amith_ami

hi all... how to rewrite this url http://mydomain.com/cms.php?cms_id=about to http://mydomain.com/about without any error using .htaccess rewriterule. pls help me to solve this.. tnx in advnc...

Member Avatar for amith_ami
0
215
Member Avatar for sivaindani
Member Avatar for LONGWAY

I cant find solution for this problem so i hope someone of u can help When i set seo settings** Use URL rewriting = yes** in Joomla than my site crashes It must be **Use URL rewriting=yes** **How to make my joomla site user friendly with this problem?** this is …

Member Avatar for LONGWAY
0
320
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
315
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 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
295
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
281
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
893
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
250
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
321
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
894
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
350
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
678
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
158
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
163
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
215
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 tom.vardy.12

Any ideas why the get variable after this .htaccess redirect is unobtainable? RewriteCond %{REQUEST_URI} !^/admin/editsale.php RewriteRule ^admin/editsale/(.*)$ /admin/editsale.php?reg=$1 [QSA,L] Many Thanks Tom

0
96
Member Avatar for SergeyWE

Hello everyone, Wapempire is a young but rapidly developing network. Our team has many years of online marketing experience which allows us to provide the best terms of partnership for our publishers. We mostly work with mobile offers such as 1WapClick (adult/non-adult), Dating & iOS/Android apps. But it doesn't end …

0
143
Member Avatar for ZER09

Hi Is there way to enable the mail function without access to php.ini? The mail function was disable by my hosting provider, and there is no way to enable it because it was shared hosting. I already search in google how to enable mail function, but got nothing. I was …

Member Avatar for almostbob
0
563

The End.