How can i offer custom url's for files uploaded by users.
For ex: user uploads a file called stack.png and it's uploaded on directory http://www.website.com/uploads/stack.png
But i want to allow the user to view/download the same file at http://www.website.com/username/uploads/stack.png
Please note i don't want to use url shortening/c...
Hello All,
Guys i'm facing an issue regarding wordpress redirection.
I've used .htaccess on my website and i wish to make this work also for wordpress pages.I've installed wordpress in a folder named as "blogs" on the root like /blogs
I've also integrated/made changes in search.php of wordpress (domainname.com/blogs/wp-content/themes/...
I have a folder that contains uploaded documents that my ZF application can spit out to logged in users. I want them to be able to use a link like http://server/documents/filename.pdf and download the file, but I want to have a controller DocumentsController that enables the existing user cookies to verify that they are logged in and hav...
I am in the process of moving a site to another server and I've ran into a problem.
The site uses .htaccess to redirect to index.php so the index.php can use $_SERVER['REQUEST_URI'] to load the whatever page is being called... However i cannot find where the old server has the .htaccess rules...so I am doing my own.
The .htacess rules ...
Hello All,
I have www.domainname.com, origin.domainname.com pointing to the same codebase. Is there a way, I can prevent all urls of basename origin.domainname.com from getting indexed.
Is there some rule in robot.txt to do it. Both the urls are pointing to the same folder.
Also, I tried redirecting origin.domainname.com to www.domainn...
I used modrewrite on my website, it affected the url structure of my website
To solve this i used the base tag
Now it work well for all links on my website, but the problem is that i cant access absolute links to other websites
Pls what do i do?
...
Hello,
I am completely unfamiliar with .htaccess and have been looking through forums and trying several examples to try and construct a htaccess rule that will solve our problem.
We have had a rule in place to redirect all traffic to the www. version of our domain name which has worked well.
However now we have bought a secure certif...
Hi,
This is a noob question I belieive, in a content management system as well as several other types of sites that work on submissions, once you submit a URL in a URL shortening website for instance, how do you use PHP to redirect to the appropriate URL without a 404 or without using an htaccess.
Based on what I've found in simple url...
Hi,
I have to deal with complex directories hierarchy, and I am facing the common trouble of include path with PHP.
I have searched the web but I haven't found anything that fit my needs.
For instance, I was using a simple directory hierarchy that never fail: no php script in the site root, only one level of subdirectory, all php sc...
Hi,
I have multiple applications running in my linux server.
The main domain is secure using .htpasswd file.
But I need the security to be removed in the subdomain.
How could I achieve this.
Regards
Nizam
...
Part of my .htaccess file looks like this-
AuthUserFile /path/to/.htpasswd
AuthName "Authorization Required"
AuthType Basic
require valid-user
Doing that requires the Basic HTTP authentication for the entire directory and the directories below it as well. However, I have a single file within that root directory, thubservice.php, that...
Hello all !
I have an error with my wordpress installation... I explain myself.. :
My wordpress is now on an unix based server with directadmin to manage my domains...
I have configured a new domain on witch I can access by : http://ipaddress/~username...
Then, for my personal needs, I access to this website through another domain name u...
Hello all
Little question with .htaccess rewrite rule..
I want to redirect http request like that :
http://domain.com/~something/blabla/blablabla?blabla=blabla
as an request like that :
h ttp://domain.com/blabla/blablabla?blabla=blabla
Simply remove the ~something (with can be anything else but with an ~ at beginning...)
I have tri...
Hi,
I want to redirect http://myip/admin to https://myip/admin. I am trying to use .htaccess to do this (want this only for the admin folder).
Contents of .htaccess placed in the relevant folder:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
(apache mod_rewrite is enabled). B...
Hi,
I am building a php site(raw coding). I want to modify the url. i think htaccess is the solution. but i am weak is this. can u people help me about this? my urls are like these:
www.site.com/index.php
www.site.com/invoice_details.php?invoice_id=100
www.site.com/user.php?uid=20&type=1
www.site.com/client_details.php?cid=10&status=ac...
how can i write the settings with this
i want to convert this file like codeigniter
www.yoursite.com/index?type=3&id=23
the results will b
www.yoursite.com/index/type/3/23
can anybody help me on this
how rewrite this on htaccess
thanks to all
...
Hi,
How can I fix .htaccess to work properly on this: http://www.cargoways.com.pl ?
It's redirected from this domain to companies server address (www.mbbm.nazwa.pl/cargoways), but the source is put as iframe. What the hell?
What's more, the address bar doesn't change on link-clicks. It stays the same: "http://www.cargoways.com" all the...
Hi, I've just uploaded my site to GoDaddy hosting and experiencing some problems with URL rewriting. Google is full of similar complains but non of the fixes that help the others did the trick for me.
My .htaccess file looks like this:
DirectoryIndex index.php
AddDefaultCharset utf-8
RewriteEngine on
Options +FollowSymlinks -MultiView...
I am trying to redirect all the files and sub folders of a folder named scripts which is not in root directory means:
from
http://localhost/(any folder)/(another any folder)/scripts/script.js
to
http://localhost/scripts/script.js
becasue I have placed the scripts folder in the root of the server.
...
Is there an easy way to create subdomains on codeigniter like api.site.com.?
Thanks in advance.
...