224 Topics
| |
Hi all I've searched everywhere on the internet including Daniweb for this answer but I can't find one. I don't want to break the rules, so I've changed the real domain name to domain.co.uk I manage a website [url]www.domain.co.uk[/url] where the owner requires a subdomain called quotes.domain.co.uk He then needs … | |
I have created my .htaccess file using notepad, its empty at the moment, im on windows. how do i upload it to my server? do i place the file inside my website directory or outside? and how do i test whether the whole process was successful or not? | |
I am working on drupal and i am using AuthName "Restricted Area" AuthType digest AuthUserFile /www/myproject/.htpasswd AuthGroupFile /dev/null <Files admin> require valid-user </Files> in htaccess and my htpasswd file contain admin:yYUhGhiABVJGI sanjay:aeGwcBYMSYUKc but I am unable to login. any suggestion | |
Hi all, I am sorry if I have posted this in the incorrect place but I couldn't see an Apache section. I am working on some ReWrites and ReDirects in my htaccess file, my reason for doing this is because I am developing a new design and layout for an … | |
Hi! I can't say im familiar with the .htaccess file. I need to create a htaccess file that will redirect the user if he manually tries to open a .txt file on the server, or tries to download it (example if the user tries to navigate to [url]www.domain.com/users/username/bio.txt[/url], then he … | |
Hi, I'm struggling to understand how to write script for Zeus web servers. I need to leverage browser cache images to get my Google page speed up. i know this is the code for .htaccess but Zeus is different: <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/html "access plus 2 days" ExpiresByType … | |
I am trying to build a store site. I want it to have friendly urls such as "/home","/store","/store/5443405", etc. I just cant figure out how to give my url more than one level. i.e. "/home" << one level "/store/5443405" << 2 levels. My php file looks like this right now … | |
Hello! i didnt see any primary forum this should be in, so i'll ask the animals of PHP. I really want the url [CODE]http://www.mysite.net/index.php?page=images[/CODE] to be [CODE]http://www.mysite.net/index/images[/CODE] Anyone got any idea? i've been searching and trying all day, but my brain capacity is not online today.. I will hug you...:( | |
I have a mobile site that the user gets automatically redirected to if they are trying to access the full site from a mobile device. I need them to be able to access the full site too, if they prefer. I have set a cookie in my htaccess file. What … | |
Hey, I have all pages in my site, coming from the DB, and I get urls like this: [B]enkeltwebdesign/index.php?sid=1&titel=FORSIDE[/B] The name of my site: [I]enkelt-webdesign.dk[/I] Does someone know how to write the correct mod_rewrite, so I can change the urls to: enkelt-webdesign.dk/forside (forside = home) enkelt-webdesign.dk/webdesign (...) [I]etc etc[/I] So … | |
How can I rewrite lots of URLs using mod_rewrite in the .htaccess file, when the URLs are in the form: blog.php?month=december&day=21&year=2010&author=thomasfoster96 ? I want it to be in the form: /blog/thomasfoster96/2010/december/21/ I can't find any Tutorials, etc, so I need some help! | |
hello friends, i trying to change the extension .php into .html in my local server but it still shows the .php extension. i have test.php and after the mod_rewrite it just show the test.php but if i type in url test.html then it also show the same content of test.php, … | |
I'm no sure if this is the best forum to ask this question. It doesn't seem to fit in any of the categories. I've set up a password protected directory using htaccess. The client now is asking for customizable error messages if the user enters the wrong user name or … | |
Hello. I have no idea how, so i'll ask you. I need /s/index.php?i=123 to be /s/123 any direction or tips would be appreciated! cheers, Sorcher | |
Hi, I am rebuilding a new website for a company and they already have a .htaccess file with the following code in it: [CODE]RewriteEngine on RewriteCond %{REQUEST_URI} !(/liens_photos/20091111|images/olympique07/) [NC] RewriteRule (.*)\.html? /$1\.php [L][/CODE] Unfortunately I am very new with this and I want to know what this code does exactly... … | |
Hi, I've not been successful looking for a solution to my problem. What I need is to password protect a directory. I could use htaccess, but the user doesn't want a pop-up login window. He wants to start on a page with a form with the username and password fields. … | |
I am in the process of trying to customize my site's URLs and I'm running into an issue with my htaccess file, specifically the newest one I am trying to add. Here's the file -- [CODE]RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] RewriteRule ^/retail/(.*)$ retail.php?id=$1[/CODE] … | |
Hi, I'm trying to add a condition to my htaccess file but it seems to only match if I use [ICODE]%{REQUEST_URI} !^/?.+$[/ICODE]. If however I add [ICODE]%{REQUEST_URI} !^/?B.+$[/ICODE] it will never match. Also the full code showing what I am trying to achieve is as follows: [CODE][B]RewriteEngine On[/B] [B]RewriteRule[/B] ^$ … | |
I’ve created a dynamic page ([I]page.php[/I]) who’s content changes based on the incoming link, specifically by calling a GET on the ID in the URL. So, for example, someone visits [I][url]www.domain.com/page.php?id=310[/url][/I] and the content on the page changes queries the database and returns results for item 310. I’m in the … | |
hello evryone, i'm changin the url by [CODE]RewriteEngine on RewriteRule ^forum-(.*).html$ ./forum.php?id=$1[/CODE] now if the url is forum.php?id=231, how can i auto change the url to forum-231.html thanks, haim . | |
You will have to excuse if this question seems stupid but while I am a fairly skilled PHP developer I am a total newb when is comes to apache and server config. I am trying to have a single page accept all the request for directories on my site unless … | |
I'm having problems with .htaccess rewrite rule. I want to convert: [QUOTE][url]http://www.domain.com/?d=SOME_STRING[/url][/QUOTE] To: [QUOTE][url]http://www.domain.com/download.php?file=SOME_SRING[/url][/QUOTE] So far I've some up with this: [CODE]Options +FollowSymlinks RewriteEngine on RewriteRule @|\?d=(.+)$ download.php?file=$1[/CODE] Anyone have an idea on why this isn't working? *mod rewrite is enabled* | |
Hi everyone, having a real problem with htaccess at the moment. If it can be done i bet its really simple but after hours of serching and trying ideas out i have got no where, any help would greatly be appreciated. ---- [B]problem:[/B] What i am trying to do is … | |
Hi, I have used mod_rewrite quite a bit so I am surprised I cannot get this to work. I think the issue may be with the ? in the url but not sure. Background: LAMP server, php/Mysql site with mod_rewrite set up and working correctly. The main rewrite rule is … | |
Is there a way to write a line in .htaccess so that a rewrite rule will NOT rewrite the URL if a certain query_string is found or if a certain page is referring to the page about to be rewritten? | |
Hello I am not sure what category to put this in. I have a question about .htaccess what I am wanting to do is remove all .php extentions from all files on a website so [url]www.domain.com/contact.php[/url] will become [url]www.domain.com/contact[/url] So my .htaccess file which I have in my public_html folder … | |
Hi I have added the following code to my htaccess : RewriteEngine On Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301] the above rule just makes the url more SEO friendly so for example [url]www.domain.com/home.php[/url] will become [url]www.domain.com/home[/url] BUT when I have a … | |
[B]Hello! I have tried this one for a while now but i cant get it to work... [B]i want the url:[/B] [url]http://example.com/article.php?read=NzQ=[/url] [B]to be...[/B] [url]http://example.com/article/NzQ=[/url] i tried this one:[/B] RewriteRule ^article/([0-9]+)-([a-z]+) http://example.com/article/index.php?read=$1 [NC] But no luck! :'( | |
Hi everyone! Whenever I develop something on an online web server my htaccess files and php.ini files work as expected. If I place a php.ini into a directory and then call phpinfo(), I can see that it is parsed. However, when I use a locally installed web server working directory … | |
I have problem regarding redirect ,I want like when someone types [url]http://picmagazines.com[/url] ,[url]http://www.picmagazines.com,picmagazines.com[/url] ,It redirects to [url]http://www.picmagazines.com[/url] only ,I added the code from [url]http://www.jackborn.com/tools/canonical-urls.php[/url] in .htaccess file but it redirects to some strange url [url]http://www.picmagazines.com/index.php?/[/url] I need this to be [url]http://www.picmagazines.com[/url] ,how I can correct that,please advice me ,this helps … |
The End.