224 Topics
| |
Hi, I have the following .htaccess file in the directory <domain>/ss/c/ [CODE] RewriteEngine On Options +FollowSymLinks RewriteBase /ss/c/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /ss/c/index.php [L] RewriteCond %{HTTP_HOST} !^www\.sexspinner\.com [NC] RewriteRule ^(.*)$ http://www.sexspinner.com/ss/c/$1 [R=301,L] [/CODE] and a index.php file with the following PHP [CODE] <?PHP $cat = $_SERVER['REQUEST_URI']; … | |
I am on a godaddy server now and trying this mod-rewrite stuff and it is still not working. I have been searching google now for hours looking for the answer and cannot find it. Here is my entire .htaccess file: #Rewrite Rules Options -MultiViews Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase … | |
hey, it has been a couple of months since i have been here, and let's get strait to the point. someone told me you can change the page title of a dynamic link with the .htaccess file. for example i have a page. [url]http://www.mywebsite.com/page.php?id=1[/url] i include this page for different … | |
I am trying to serve up some PHP files as extension-less or as custom extensions (e.g. test.myfile1). This is my current .htaccess: [CODE]#AddHandler application/x-httpd-php .$ RewriteRule ^([^\.]+)$ $1 [T=application/x-httpd-php-source] [/CODE] Previously it was: [CODE] AddHandler application/x-httpd-php .$ [/CODE] Which is better, and how should I go about this? Thanks | |
hello.. i have to write htaccess for mysite. actually we have two domains. '.com and .in' . for example i opened '.com' site it will actomatically access files from '.in' domain. there is no files in .com site. how to write .htaccess for this. thanks. | |
Hi guys, I have a problem with this rule in .htaccess [ICODE]#RewriteRule ^(.*).xml $1.php?%{QUERY_STRING}[/ICODE] I need this rule transfer to Lighttpd web-server system. Very big thanks. | |
Ive read a few tutorials to try and get this mod_rewrite to work but have no luck. I have checked my phpinfo and everything should work. I am trying to change this url: [url]http://domain.com/viewAlbum.php?aid=2[/url] (any number) to this url: [url]http://domain.com/album/2/[/url] Here is my .htaccess file and I dont know if … | |
Hello guys, i got a problem here.. I would like to change the url: [url]http://mysite.com/edit_files.php?deleteid=26[/url] to something randomized so people can change the numbers in "deleteid=26" I know i need a htaccess code for this, and i've searched allot to try bring this bitch down, so asking some pro fellas … | |
I am having troubles finding out how to make my url from [url]http://example.com/index.php?page=images[/url] to [url]http://example.com/images[/url]. None of the htaccess tutorials i read today could make me understand it. I would give you a big wet kiss if you could lead me / give me a snippet or your awesomeness so … | |
hey people . i have a question and i dont know where to post it . i want tow wrtie .htaccess file that rewrite the url of my links as well as increate my websites memory , i mean the size of the uploaded files and so on . i … | |
Hello guys, i stumbled over a htaccess trick once but cannot find it again. I need a htaccess script that prevent files in a specific folder to not be executed. If any of you have this / know about it, i would love you for the rest of your life!*cough* | |
Hello, i am running a site consisting mainly of images . the problem im facing is high traffic loads sometimes from social networks on image links directly like : /i/image_123232.jpg instead of the image page. I have developed teh site in a way to use same image name as teh … | |
Hello all, How would I go about getting my site to redirect any visitor to [url]http://site.com[/url] rather than [url]http://www.site.com?[/url] I have searched the forums here and have tried various coding people have provided but none of it seems to work. Could someone maybe post a step by step guide on … | |
Hi everyone, I have designed my website from 6000 static HTML pages to a more structured system. However I am not carrying over same structure so I will need to setup a bunch of 301 permanent redirects in order to keep my search rankings. (have spent a lot of money … | |
hello, I am new to php and apache..any help is appreciated. I am designing a music website..I am designed the music player with flash.I have xml file like this where my flash player play the songs from the url..I have a folder named songs. <song> <track>Princess Song</track> <artist>Artist Two</artist> <url>songs/princess.mp3</url> … | |
Hello, I am trying to map a URL to a sub path using .htaccess. Does this look right? //Rewrite to www Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.co.uk/sub-path[nc] RewriteRule ^(.*)$ http://www.domain.co.uk/sub-path/$1 [r=301,nc] //301 Redirect Old File Redirect 301 [url]www.anotherdomain.co.uk[/url] [url]www.domain.co.uk/sub-path[/url] //301 Redirect Entire Directory RedirectMatch 301 [url]www.anotherdomain.co.uk(.*[/url]) www.domain.co.uk/sub-path/$1 Many thanks! | |
Hi all, I m newbie in .htaccess i am using .htaccess to make url SEO friendly. I can access admin in localhost of my pc. but when i put all this files to my server i can't access admin. it shows me white blank page. without any message or error. … | |
| Sorry if this is in the wrong section (PHP), but wasn't sure where to put htaccess issues.... Here's the deal - I have two domains, let's say domain1.com and domain2.com. On my web server, I have domain1 set up as the primary domain (/public_html/), and domain2 is an addon domain … |
Hello. I am trying to get the correct code in order to get specific content shown according to the current site the visitor is on. I have done two tests: [CODE=php] <!--START TEST 1--> <?php class address { function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= … | |
I have a website running xcart ([url]http://www.mysite.com[/url]) and want to run it as a secure website ([url]https://www.mysite.com[/url]). The following are the solutions I have done: 1. I have tried to enforce SSL through htaccess but it gives me INTERNAL SERVER PROBLEM Error. 2. I have created a self-signed cert through … | |
Hi everyone, So i have the following code which is used so i don't have to have .php at the end of my files and also more importantly to view members profiles by having there username after my domain. Unfortunately if the user has a space in their name you … | |
Hi, I am getting an 500 internal server error when using the redirection code in my HTACCESS file.Given is the code i am using: RewriteEngine On rewritecond %{http_host} ^domain.com rewriterule ^(.*)$ http://www.domain.com$1 [r=301,L] I also have already following lines of code in my htaccess file: # -FrontPage- IndexIgnore .htaccess */.?* … | |
Hello, Here is my problem: I have copied a web site onto my development server. All the images and files are called using absolute paths, for example: <img src="/images/picture.jpg" /> So it's trying to do this: [url]http://www.localhost.com/images/pictures.jpg[/url] When I want it is actually suppose to do this: [url]http://www.localhost.com/client/folder/images/pictures.jpg[/url] How do … | |
Hello, Bandwidth on one of our sites was severely messed with on the 28th of this month. The cpanel only tracks daily access logs and didnt archive them(it does now), using aw stats I found our bot traffic to be as follows: Googlebot 145686+43 7.47 GB 28 Jul 2010 - … | |
Hello Any one know the rules for htaccess, I have follow requirement: [url]http://www.domainname.com/aboutus.php--input[/url] [url]http://www.domainname.com/aboutus/[/url]--Need this output | |
Hello, I just finished creating an online site builder and now its time to launch it, I am facing a problem related to URL-Rewriting. My site builder contains all the files and folders which will make up the client's site inside a folder named as "usersite", and can be access … | |
| I want to set all the permission in one specific folder with htaccess. What to code in htaccess for that? Please help.. |
Hello and thanks in advance to anyone who can help me with this problem. A publication went out to our field of users with a mis-typed urls and now all the visitors are landing on our 404 page. The problem with the published links is that the sub-directory [url]http://www.mysite.com/subdirectory/file.html[/url] was … | |
Hello all! I just wonder if it's posible to rewrite index.php, index.php?variable=some and the root to same rewrite in htaccess. If so how? Here's an example that don't work, but maybe you get the idea. [CODE]RewriteEngine On RewriteCond %{HTTP_HOST} !^myexample.com$ RewriteRule (.*) http://myexample.com/$1 [R=301,L] RewriteRule ^another-variable-in-url$ /index.php [L] RewriteRule ^another-variable-in-url$ … | |
Hi, I'm using a simple .htaccess file to use a custom 404 error page: ErrorDocument 404 /errors/404.php Inside this 'errors' folder, there is the 404.php file, and an image, which I want to include in the 404 page. Anyway, when I request a non-existing page from the root folder, everything … |
The End.