Basically, I want to upload about 10,000 family photos that have been organized into folders according to names of the people involved. What I'm looking for is php driven software that allows me to put passwords on each of the folders initially and then allow the family members themselves to manage their folder by adding additional usern...
I have the following rule that redirects all traffic to index.php when public folder is visited. How can I modify it to exclude .png files? That means, if /public/something.png is visited, it should render in the browser or should be accessible inside the code when called using an:
"<img src='/public/example.png'>".
RewriteCond %{DOCUM...
How can I specify filepath to imagepng function? It always seems to create the file in "/public" folder when used in an MVC Zend Framework and even when an explicit filepath is supplied. Is it because of the rewrite rules I have? My .htaccess rewrite rules are as under:
FileETag none
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefa...
My current page is set up like this, where '#' is a number for each user;
http://site.com/member.php?u=#
I want to move it to a different folder on the same site, how would I set up .htacces so when some goes to the page above, they're automatically redirected to this;
http://site.com/new_folder/member.php?u=#
I have seen a few tut...
The title doesn't give justice to the question.
I have a site and I want it to be redirected to a subfolder.
I have this right now:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.mysite.net$
RewriteRule ^(.*)$ "http\:\/\/www\.mysite\.net\/subfolder$1" [R=301,L]
The problem is that it result...
i have two rules in my .htaccess file for url rewriting:
for subdomain rewriting: xxx.domain.com is internally redirected to file.php?item=xxx
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([^.]+).domain.com$ [NC]
RewriteRule ^$ /file.php?item=%2 [QSA,nc]
ordinary rewriting:
RewriteRule ^([A-Za-z0...
Hi!
I'm currently rebuilding my site and I want to make "under construction" page for visitors during that time.
My only problem is that I want to user pictures whit it but when I have in my htaccess file this:
# Under construction
RewriteCond %{REMOTE_HOST} !^xxx\.xxx\.xxx\.xxx
RewriteCond %{REQUEST_URI} !/rebuilding\.html$
RewriteRu...
Hi guys, I've a webapp at www.mysite.com/myapp/ and I'd like to redirect users visiting my app from iPhone to www.mysite.com/myapp/i/ using an .htaccess file in /myapp folder.
What I've tried so far is:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} iPhone
RewriteCond %{REQUEST_URI} !^/myapp/
RewriteRule .* /myapp/i/ [R]
It enters a...
I've been trying things on my server but I can't figure out what's going wrong.
As of now, this is the .htaccess I have:
Options +FollowSymlinks
RewriteEngine on
RewriteRule (.*) $1 [NC, L]
Instead of rewriting to 'match' it rewrites to 'match'.php
Any idea why?
...
I'm trying to automatically redirect for any url that has "checkout" in it to https. Otherwise, if the url is https but doesn't have "checkout", I want to redirect to "http:". Only urls with "checkout" can have https. I need an if-then-else structure. The syntax below doesn't work ... redirects to index.php if there is https in the u...
I have a website with a CMS that uses mod_rewrite to make URLs look cleaner. Previously, the clean URLs had the extension .htm, but I want to transition this to them appearing as fake subdirectories, IE:
http://www.example.com/pagename/
I have two rewrite rules in place to rewrite both the old scheme and the potential new one:
Rewrit...
Hello , when i try to make AJAX request with jQuery as a response i get the html of the same page !
here is a live preview (edit not available due to me fixing it )
here are my files
Edit : I have made changes to some of the files
main controller :
Class Main extends Controller {
function Main()
{
parent::Controller(); ...
Hi,
Please check the attached code.
RewriteEngine on
# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [N...
What is the best way to send all traffic to your site a 404 page? I'm currently working on the site and would like it to just 404 for all requests. I've tried playing around with htaccess files but haven't been too successful in getting one working like this. Additionally, I would like traffic to a particular folder to still get through....
Hi,
I'm trying to rewrite the following into htaccess using - redirect 301
redirect "mysite.com/longname/{20 character string}" to "mysite.com/shortname/{10 character string}"
basically to redirect the "longname" to "shortname" and cut the "20 character string" to the first 10 characters
so when I go to mywebsite.com/longname/aaaaabb...
Hello,
This is working:
<Files *.fileext>
Order Allow,Deny
Deny from all
</Files>
This is not:
<Files *.fileext|somedirectory>
Order Allow,Deny
Deny from all
</Files>
Please help.
...
Hello,
I'm trying to use gzip on my site.
I'm trying to compress, php, css and js files. The server is apache 1.3, and the code I have in the .htaccess file is:
# compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
But when I upload this, I just get an Error 500 page.
Any ideas.
...
I'm attempting to use mod_rewrite to clean up the URL's to a flash video player. First, here is the original URL that I'm trying to rewrite to:
library/player.swf?path=path-to-file.flv
The above URL works perfectly fine when I access it directly. I have coded the swf to automatically grab the path parameter and play the video. No prob...
artoferichu.com/figures/ doesn't load.
artoferichu.com/figures loads.
the flash movie won't load in the first link and loads in the second link. any idea what is going on??
i'm using .htaccess to redirect figures to figures.php
oh btw, my .htacces looks like this: RewriteRule ^figures/?$ figures.php
...
My apologies in advance if this turns out to be a novice question. At the moment, my main frustration/oblivion stems from the absolutely confounding nature of performing a search for my particular problem.
I am using a variety of htaccess rules to ensure that my css, css images, and javascript files are caching. Based on the header resp...