224 Topics

Member Avatar for
Member Avatar for rgutierrez1014

I'm using a code snippet from the Invision Power Board forum software on my own site to, sort of, connect the two. I have a "member bar" that I wanna put on every page in my website that has a login link, profile link, etc. I've already done this, the …

Member Avatar for almostbob
0
273
Member Avatar for nova37

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 …

Member Avatar for nova37
0
164
Member Avatar for md.farhad

DirectoryIndex index.php Options All -Indexes ErrorDocument 403 http://www.domain.com/forbidden ErrorDocument 404 http://www.domain.com/error <Files .htaccess> Order Allow,Deny Deny from all </Files> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] This is my .htaccess document. I am having problem thats called HTTP Error 500 (Internal Server Error). When i …

Member Avatar for pritaeas
0
126
Member Avatar for diafol

Hi all. Am having a senior moment here. I have a htaccess file thus: Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]*)/*([^/]*)/*([^/]*)/*([^/]*)/*([^/]*)/*$ index.php?lang=$1&top=$2&middle=$3&bottom=$4&sub=$5 [L] Which basically allows me to show http://www.mysite.com/cy/tgau/cemeg-1/ for http://www.mysite.com?lang=cy&top=tgau&middle=cemeg-1 That's all well and good. However, I'm getting real problems directing my forms to /includes/login.php This …

Member Avatar for cereal
0
224
Member Avatar for Patiodude

I recently converted all my website's files to .php, including my index.html and 404 page. Everything worked fine until I clicked a dead link, and no 404 page came up. Naturally, I figured I forgot to update the .htaccess file. After doing so and re-uploading it, every page on my …

Member Avatar for |-|x
0
246
Member Avatar for Awah Mohamed

hi guys, well i am using .htaccess in my website to make SEO friendly urls.. the urls are supposed to look like this: http://localhost/home or http://locahost/singup it is working nicely.. the problem is when i came to makin forms.. how should i submit my forms?? the .htaccess takes all the …

Member Avatar for Awah Mohamed
0
166
Member Avatar for Pityu

Hey there My issue is the following: I have a windows-based xampp-apache server with which I would like to make sub-sub domain redirects to subdirectory: I have a domain, for which on the cpanel I've made an A-record to my IP address: The sub domain is *.dev.bestudion.net. Whay I want …

Member Avatar for gtec
0
149
Member Avatar for kukula

Hi there, at the beginning I must admit that I am not good at PHP. I made a few websites in HTML but now I don't know what happened and what to do with it. I wanted to change a few things at [http://www.tips2.pl/](http://www.tips2.pl/) which is made in PHP. Everything …

Member Avatar for kukula
0
198
Member Avatar for dantheman50_98

Hi There, I'm building a site using opencart and every page on the site has an seo-friendly url except for one, which is the main page of the blog. The url for this is: /index.php?route=blog/category/home/index.php I'd like this to be just plain old /blog but I can't seem to get …

0
93
Member Avatar for sasa.spurmanis

Hi everyone, I'm new to the forum and relatively inexperienced at web publishing as well. I'm currently administering the following website: [url]http://latmont.org/[/url] I've set up the website to work with an external CSS style sheet that is linked from the header in each web page. The style sheet was created …

Member Avatar for DaveTheSinger
0
331
Member Avatar for jonow

By using the `.htaccess` file, I can make any missing image on a page be replaced with a default ‘not found’ image. However, when this is done the replacement ‘not found’ image is stretched to the dimensions of the original missing image. I was wondering if anybody has a solution …

Member Avatar for diafol
0
135
Member Avatar for baig772

i have following .htaccess RewriteEngine On DirectoryIndex index.php RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)/([^/]+)?$ index\.php?page=$1&s=$2&o=$3 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)?$ index\.php?page=$1&s=$2 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})/?$ index\.php?page=$1 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})?$ index\.php?page=$1 [L] ErrorDocument 404 /404 it displays mu url as localhost/mysite/home for first perimeter and its going fine but when my url is localhost/mysite/home/user, whole look of page …

Member Avatar for pritaeas
0
106
Member Avatar for shahbaz13

I need to convert this code to web.config file. Plz Help.. #Fix Rewrite Options -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewriterule ^(.*)$ $1.php [L,QSA]

Member Avatar for shahbaz13
0
212
Member Avatar for Squit

hello ppl :) i use .htaccess for my PHP site to redirect without changing the URL in the adress bar for example: [url]http://www.example.com/news/This.is.a.new[/url] my .htaccess sends from /news/ folder sends the user to [url]http://example.com/news.php?id=142151[/url] ... and i can't send another variable to the [url]http://www.example.com/news/[/url] folder because is redirected to news.php?id... …

Member Avatar for Squit
0
1K
Member Avatar for R.Manojkumar

hi friends i use a htaccess file on my linux hoting server to change the "upload_max_filesize" and some other settings. but it shows the internal server error 500. how to change this setting on my server, Plz help me:( htaccess file code. php_value upload_max_filesize 50Mb php_value post_max_size 50Mb php_value max_execution_time …

Member Avatar for karthik_ppts
0
2K
Member Avatar for jonow

I know how to replace any image that cannot be found with a default image with the .htaccess file but I was wondering if it could be done when there is not URL. For example if I have this: [CODE]<img src="" alt="Picture" />[/CODE] It would not show up, I was …

Member Avatar for jonow
0
315
Member Avatar for Bubbleboy

I have a set of PDF files on our website that the user needs to log in in order to view. The only problem is once they log in and get the URL for them, they can email it to their friends or anyone and they can be viewed by …

Member Avatar for lps
0
104
Member Avatar for bsimms86

I'm running Apache2.2 on Ubuntu 10.04LTS. I can't seem to figure out how to have my password-protected directories show up in a directory listing. I am trying to create an environment where users can see all available directories, but have some of the directories password protected. When I add the …

Member Avatar for bsimms86
0
245
Member Avatar for patrick1981

I have a blog with a domain that I moved to a new host and now it doesn't have SSL certificate installed on it. There are certain links to that domain that where bookmarked using https and now that SSL is not installed on the new server users who access …

Member Avatar for patrick1981
0
220
Member Avatar for perfectweb

[CODE] RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php/$1 [/CODE] my url = localhost/mvc/ i work on windows in xampp i have a problem when i go to my url /404 i thinks i am on localhost/ so it redirects me to localhost/xampp/splash.php but it …

Member Avatar for blocblue
0
305
Member Avatar for andy106

Hi We are moving from one shopping cart to new one. we have about 4500 product links. is there anyway to make a general to move domian.com [url]http://www.domain.com/SearchResults.asp?Search=1234-111&Extensive_Search=Y[/url] to domain.com/search/q=1234-111 I don't really care about the -1111 (last 4) is there anyway to make this dynamic so I don't have …

Member Avatar for manojsamtani
0
199
Member Avatar for Advokat

Hey guys and girls, I'm now on this forum, but looking forward to some interesting debates :) I work at an "advokat (advokatkontor)" meaning a lawfirm in danish. I work with different things, but im the only person that knows any IT advokater/lawyers = knows nothing about computers :p My …

Member Avatar for pritaeas
0
151
Member Avatar for andy106

Hi We have moved our site with a new system with a new structure. the domain is the same just structural changes, and I cant seem to get the htaccess right. Here is what i am trying to accomplish: move this: [B][url]http://www.domain.com/chairs/519.htm[/url][/B] to: [B][url]http://www.domain.com/catalogsearch/result/?q=519[/url][/B] we have over 5000 links so …

Member Avatar for rubberman
0
184
Member Avatar for oksam

I am trying to give each MOVIE there own url name, for example, [url]www.helloworld.com/BATMAN[/url]. I have been using mod_rewrite to create such url. I have been using following htaccess code to achieve such result. RewriteEngine ON RewriteCond %(REQUEST_FILENAME) !-d RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-l RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] The …

Member Avatar for oksam
0
298
Member Avatar for sammrat23

I have a website built in .php but we have converted it to .html by using "mod rewrite". the mod rewrite code used in .htaccess is "RewriteEngine on RewriteRule ^(.*)\.html$ $1.php" Now the problem is my website shows up in both .php and .html. for example: [url]www.mydomain.com/index.html[/url] and also [url]www.mydomain.com/index.php[/url]. …

Member Avatar for diafol
0
172
Member Avatar for AnkurThakur

Hello Guyz, I could not found any Forum for Web Servers or something related to my problem so I am posting it here. So I am having trouble with Regular Expressions in HTACCESS. So what I have in my website is : [B]ROOT : (my web root is in a …

Member Avatar for pritaeas
0
151
Member Avatar for bsewell

Hello, I want to make a simple website, and friendly urls would be a great step towards that. I have been trying this for 2 days without success. [url]www.mydomain.com/join[/url] redirects to [url]www.mydomain.com/index.php?path1=join[/url] [url]www.mydomain.com/forum[/url] redirects to [url]www.mydomain.com/index.php?path1=forum[/url] [url]www.mydomain.com/forum/getting-started[/url] redirects to [url]www.mydomain.com/index.php?path1=forum&path2=getting-started[/url] These directories do not actually exist. They are going to …

0
135
Member Avatar for tatianna21

Hi, I would like to setup a htaccess for my dating site, where only US and UK IP ranges would be allowed, as well as my own IP, which is from EU. All other countries and proxies have to be blocked. I've searched on the net, but found nothing conclusive, …

Member Avatar for cereal
0
48
Member Avatar for dean8710

Can someone share the use of .htaccess and the sample of the code.. Is this .htaccess really usefull? :?:

Member Avatar for dean8710
0
240
Member Avatar for astorum

Ok i got a problem, i want the domain directory default folder to have index2.php as default page, but i DO HAVE also index.php. so when i even visit mysite.com/index.php it only shows mysite.com/index2.php, enven entering it explicitlly this is my rule DirectoryIndex index2.php index.php (I have a reason to …

0
114

The End.