Tagged Questions
0
votes
1answer
171 views
Configure clean URLs using Laravel using a rewrite rule to index.php
Recently I've started learning Laravel , I haven't any experience with framework before. I'm encountering the following problem .I'm trying to configure the .htaccess file so I can have clean URLs but ...
0
votes
2answers
31 views
Pretending a file is in subdirectory with .htaccess
I have a web application, and it has a RESTful PHP backend that uses Zend framework (which does its own URL rewriting magic).
The problem is, my backend's entry-page is api.php and the endpoints look ...
1
vote
1answer
40 views
Automatic redirection from http to https with .htaccess authentication in virtual hosting
Hi I have configured Virtual host on apache with .htaccess authentication with SSL. It's working fine when I typed url https://www.example.com:9004/test.php but when I typed ...
2
votes
1answer
131 views
What are the most commonly used and basic Apache htaccess redirects?
This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
0
votes
1answer
34 views
Can I redirect the http request towards an old folder to the homepage using .htaccess file?
I have to following situation: I had an old blog that was made using Joomla (this blog was indexed well enough by search engines). For some problems I delete it and I have create it again using ...
0
votes
2answers
52 views
Issue with Apache redirection [duplicate]
I want to redirect mysite.com or http://mysite.com or www.mysite.com or any other format given my user to http://www.mysite.com, I'm able to achieve this by rewriting following lines in my .htaccess ...
3
votes
2answers
104 views
prevent hotlinking of off-site content?
I have a www.example.com site where I serve all static content (e.g. http.//www.example.com/image.jpg) off a CDN with URLs like http://static.example.com/image.jpg
An Apache 2 .htaccess rule ...
3
votes
2answers
54 views
Installing a PHP framework to a host without public_html or www folders (ftp is DocumentRoot)
I've developed a PHP framework that operates with the directory structure of
/
/classes/
/templates/
/.../
/www/ (public_html)
But I've come across a host that only allows ftp to the ...
2
votes
1answer
138 views
How to set htaccess working on opensuse for codeigniter project
I'm trying to have htaccess work on codeigniter project but the module is not working and I don't know how to enable rewrite module. To have read the htaccess. The OS is Opensuse 12.2.
I have this ...
1
vote
1answer
610 views
Apache2 redirect all sub-directories to index.html of main directory?
I want to put an .htaccess file in a directory of my website. For this purpose in:
www.mysite.com/dir/
Then I want anything after /dir/ to direct to /dir/index.html but still display the original ...
2
votes
3answers
627 views
mod_rewrite works within directory not on root
I am having a problem with my RewriteRule for the querystring portion. What I am able to debug is that the rule is being triggered at least because the page "tags.php" is being rendered but without ...
2
votes
1answer
174 views
htaccess code for maintenance page redirect
I set up a maintenance page that I could enable through an htaccess file. The html file is located in a folder called "maintenance".
The html file has some images in it. However, visitors to the page ...
0
votes
1answer
81 views
How to ensure apache2 reads htaccess for custom expiry?
I have a site with Apache 2.2.22 . I have enabled the mod-expires and mod-headers modules seemingly correctly:
$ apachectl -t -D DUMP_MODULES
…
expires_module (shared)
headers_module (shared)
…
...
1
vote
1answer
91 views
Is it possible to use two different ErrorDocuments for different paths of a website?
I currently run PmWiki at mydomain.com/pmwiki. I have a 404 page and .htaccess set up in my site's document root for 404 pages regarding anything that doesn't have to do with my wiki. By default, ...
1
vote
0answers
220 views
404 error on a file/directory that exists?
We are using the vBulletin system.
I have set it up so that it redirects 404 error's to a php page, so it follows the theme of the forum.
However, if I go to a directory that exists (the admin ...
1
vote
0answers
261 views
File access forbidden in htpasswd
I have been using the htpasswd generated in this question and it seemed to have been working well until recently.
Since yesterday, I am not able to access the newest file created in the folder ...
2
votes
2answers
253 views
htaccess preventing sqlite database being downloaded
I have a VPS, running apache2 on Debian 6.
Created a file called .htaccess on the web root, which included:
<Files ~ "\.db$">
Order allow,deny
Deny from all
</Files>
...
0
votes
2answers
229 views
htaccess and htpasswd trouble
This is the first time that I have ever tried working with .htpasswd and .htaccess files, so please point out my childish works.
I have my apache document root set to /www/ on my debian server. ...
2
votes
3answers
1k views
How to restrict site access to all countries except mine with .htaccess?
I used this tool to download list in ".htaccess allow" format to allow traffic from my country and restrict all others but it's still accessible when visiting from bunch of foreign proxies.
I'm ...
0
votes
0answers
361 views
“Allow from all” and “Options –Indexes” is Illegal option? [closed]
I have this .htaccess configuration
allow from all
Options –Indexes
and I want is the my web clients can access my resources in that folder but they can't do a directory listing...
did i went to ...
1
vote
1answer
67 views
Apache2 “pseudo” doc root
I have several folders in my /www folder that contain various applications. To keep things organized, I keep them in their own folders -- this includes my base application.
Examples:
phpmyadmin = ...
3
votes
3answers
592 views
How do I block US users from my website without interfering with SEO?
My website uses Apache 2.2.14 (which forwards all requests to Tomcat underneath).
I need to block all US users from accessing the website (and potentially users from other countries). But importantly ...
2
votes
1answer
668 views
.htaccess file ignored on Ubuntu Apache 2 server
I'm having a problem with an .htaccess file on a newly installed Ubuntu server running Apache2.
The .htaccess file in the directory where the WordPress files are located isn't being take into account ...
0
votes
1answer
192 views
How to block my images from being displayed by other websites? [duplicate]
Possible Duplicate:
How is anti-hotlinking done?
I have a lot of images on my site and I don`t want to let other people to use my images on their sites. Is there any way to block the use of ...
0
votes
1answer
583 views
Override .htaccess from parent directory
I have a local LAMP stack (without the MySQL. LAP stack? Anyways..) and I am using this as a development environment for a production website. The site is placed in a sub-directory of the Apache2 ...
1
vote
1answer
54 views
Forcing adverts via apache configuration file
I have a server I am trying to force adverts for free users. I can do it with a .htaccess file with this line "php_value auto_append_file '/var/www/vhosts/demoblog/demoblog.tk/httpdocs/test_ad.php'" ...
