Apache :: Htaccess - Silent Redirection From One Directory To Another?

Sep 26, 2013

apache configuration. I try to achieve the functionality in which the user type in browser: mysite.com/projects

View 1 Replies


Apache Nested Directory Permissions Or HTAccess

Apr 9, 2014

Is it possible to lock for example the site down with basic auth and lock a subdirectory of it with a different basic auth?

Example: URL...

<LocationMatch "/*">
AuthType Basic
AuthName "Main Gate"
AuthBasicProvider file
AuthUserFile /etc/accounts
Require valid-user


View 1 Replies View Related

Symbolic Link Or .htaccess Redirection

Mar 16, 2007

cPanel interface and want to create friendly link to access phpmyadmin. So, here is my questions:

1- Is there a way directly in cPanel to do it?

2- What is the better way to do this: Symbolic link or simple redirection?

View 1 Replies View Related

.htaccess Disappears From Directory ..?

May 31, 2008

how can active htaccess files in side my server, every time when i upload any htaccess just disappear from the dir

View 5 Replies View Related

Use Htaccess File To Disable Downloading Of Anything In The Directory

Aug 10, 2008

I am using a flash media player on one of my domains that streams music. The flash player would be like domain.com/music

The mp3 files are located in domain.com/music/mp3

The flash player just reads the title of the song and displays it in the media player.

I have used htaccess already to disable indexing, but the file name that shows on the media player is the exact name of the mp3, so I'm pretty sure people will be able to easily figure this out and start downloading our music.

What else can I add to htaccess to allow localhost access to the music, to stream with the flash player, but wont allow downloading of the mp3s.

View 3 Replies View Related

Apache :: Multiple Server Redirection

Jul 16, 2015

Our servers has been updated recently and my site is not working properly. It was working before the server change. When I click on the links, it doesn't update correctly, instead it gets the last cached data. I have to refresh each link for it to update which shouldn't be the case. I'm a front-end and have no access to servers. Could this be server-related?

View 1 Replies View Related

Apache :: Internal Server Redirection Vhost

May 26, 2013

I have a Public [82.x.x.x] and Private Apache Servers [], and wish to redirect a series of subdomain requests i.e. for joomla.example.com or moodle.example.com on 82.x.x.x => joomla.example.com or moodle.example.com on

joomla.example.com [82.x.x.x] returns joomla.example.com []

moodle.example.com [82.x.x.x] however returns joomla.example.com []

VHOST Configuration on [82.x.x.x]:

<VirtualHost *:80>
ServerName joomla.example.com
RewriteEngine On
RewriteRule ^(.*)$$1 [P]
<VirtualHost *:80>
ServerName moodle.example.com
RewriteEngine On
RewriteRule ^(.*)$$1 [P]


VHOST Configuration on []

<VirtualHost *:80>
# joomla.example.com>
ServerName joomla.example.com
ServerAlias joomla.example.com
DocumentRoot /var/www/joomla/
ServerRoot /var/www/joomla/
ScriptAlias /cgi-bin/ /var/www/~cgi-bin/joomla/
ErrorLog /var/www/~log/joomla/error.log
CustomLog /var/www/~log/joomla/access.log combined
ErrorDocument 404 /404.htm

[Code] ......

View 2 Replies View Related

Apache :: HTTP To HTTPS Redirection And Preserve Canonical

Aug 26, 2014

I want to rewrite my all site urls from http to https and also preserve URL canonicalation like all url redirected to http://www. How to achieve this goal?

View 1 Replies View Related

.htaccess Issue With Apache 1.3, But Works On Apache 2.2

Mar 22, 2008

I have the following Apache redirect code in .htaccess:

RewriteRule ^sap-latest-news/([0-9]*)/([A-Za-z0-9_-.]*).htm$ /domain.com/app/modules/content/latestNews.php?id=$1 [L]

This redirect works fine on Apache 2.2.8, but doesn't work on Apache 1.3.41

The following is the entry from error_log:
RewriteRule: cannot compile regular expression '^sap-latest-news/([0-9]*)/([A-Za-z0-9_-.]*).htm$'

A simple Rewrite is working fine in Apache 1.3, but the above regualar expression doesn't seem to be working on Apache 1.3. Does anyone know whether Apache 1.3 doesn't support it?

View 3 Replies View Related

Apache :: Redirection Page From Subdomain To New Subdomain

May 11, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).

I need to redirect page from subdomain to a new subdomain

esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage

Source site is very chaotic and there are no clear rule for redirection (no regex )

So I need to redirect every page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage

doesn't work!

which is the correct syntax ?

Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ? 

View 1 Replies View Related

Set Apache Handler Through .htaccess - Possible?

Jun 2, 2007

I am running into a bit of a problem. Previously, I can add an apache handler through cPanel easily... but now I moved to mediatemplate.net and that feature isn't available on their contol panel. Since they also run apache, I figured that I can set the apache handler manually through an .htaccess file - is that possible? If so, what is the syntax that will enable me to set .html files to be handled like .php files?

There is one setback to this process - this will be a manually inserted file for every directory that I want to do the above stated file handler. Is there an easier way to do this via SSH? I don't have root access, only normal user access.

View 3 Replies View Related

How Enable Htaccess On Apache?

Jun 2, 2009

Hi Htaccess not working in my server how Enable htaccess on Apache ?

View 14 Replies View Related

Htaccess Not Work On Apache

Nov 3, 2009

im installing APACHe on windows server 2003 but .htacess not work on apache

View 4 Replies View Related

Apache :: HTAccess - How To Do URL Rewrite

Oct 23, 2014

I have been trying to figure out how to do a url rewrite but no luck so far.

How can I have this [URL] ....

as the default [URL] ....

View 2 Replies View Related

Apache :: How To Use HTAccess And HTPasswd

Jan 26, 2014

I am have trouble using .htaccess and .htpasswd to password-protect a directory on my web server. How do I use .htaccess and .htpasswd to protect a directory?

View 3 Replies View Related

Apache :: Redirect URL Using HTAccess

Jul 17, 2013

I have a website. I would like to redirect all user/author url to one author/admin...e.g All aurthor links to redirect to one author link

author 1. mysite (dot) com/author/x
author 2. mysite (dot) com/author/y
author 3. mysite (dot) com/author/z
they are about 300

I would like all of them to redirect to author 2. mysite (dot) com/author/admin.

View 3 Replies View Related

Apache :: What Is HTAccess File

Jan 31, 2013

what is .htaccess file? use of this file?

View 6 Replies View Related

Apache :: URL Remapping With HTAccess

Jan 25, 2013

I have a directory of /flash/1.swf all the way to /flash/4000.swf on my hosting.I am trying with terrible luck to load the flash movies into the container on zomgflash dot com(avoiding possible spam) -- its all setup...it should be loading the movies...I think it's a mod_rewrite problem but I could be wrong...it's basically a clone of iwantmoar dot com(avoiding spam again) -- you'll notice when you type a number after the domain like /238 or /2898 that it loads up /flash/238.swf or /flash/2898.swf into the flash container on the iwantmoar website. That's what I'm trying to get my website to do.

I need them shown like [URL] .... in the address bar... and that would have index.php load up 1.swf in the container if that makes more sense.This is the contents of my .htaccess from my relentless googling:

<IfModule mod_rewrite.c>
Rewrite-engine on
RewriteRule ^([0-9]+)$ /index.php [PT]
ErrorDocument 404 /index.php

View 1 Replies View Related

Malformed Htaccess Kills Apache

Jun 13, 2007

Does anybody know any solution to prevent this?

Basically every customer can bring server down with malformed htaccess.

Is there any solution to prevent this?

This doesn't help:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteOptions MaxRedirects=5

this htaccess causes problems:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

View 6 Replies View Related

Apache :: Mass 301 Redirect HTAccess

May 11, 2013

I've not seen an answer for this mass 301 redirect issue specifically.. How to do this...

category/brand URLs:

redirect: /ID-some-brand (e.g. /43-religion-clothing or /26-ichiban) to: /some-brand (e.g. /religion-clothing or /ichiban)

Product URLs:

redirect: /some-category/ID-some-product-name.html (e.g. /mens-sweat-shirts/1543-ichiban-fairly-offensive-sweat-in-grey.html)

to: /some-product-name (e.g. /ichiban-fairly-offensive-sweat-in-grey)

We have 1,090 products and 60+ categories so some form of .htaccess trick would be amazing to know. What I could put in the .htaccess to accomplish this.

View 1 Replies View Related

Apache :: HTAccess Redirect Loop

Jan 25, 2014

Well, I was trying to use the following in htaccess, but I get the message of redirect loop.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]

What I want to do is this: The URL is like somedomain.sub.com/somepage/s1/s2The index.php is accessible from somedomain.sub.com/somepage/I want to send s1/s2 as $_GET['page']

Also, I don't want the URL in the address bar to change, only the url sent to the server should change. This worked well in my localhost, but on webserver (0fees.net), it doesn't work ...

View 1 Replies View Related

Apache :: HTAccess Wildcard Subdomains

Jul 11, 2015

I have viewing the city names in my website like the following structure - [URL] ....

Here is the ,htaccess code - RewriteRule ^([^/]*)/([^/]*)/$ city.php?state=$1&city=$2 [NC]

But actually, I'm looking for to use wildcard subdomains that will rebuild the city names like the following structure-

I just need the htaccess rewrite code. 

View 1 Replies View Related

Apache :: HTAccess Needs For Rule To Redirect

Feb 21, 2013

I have page like that : [URL] ....

I want to permanent redirect it to : [URL] ....

Also needs to redirect all another page have words ( rates ) to index.

View 9 Replies View Related

Apache :: Removing PHP For One File Only In HTAccess

Jun 11, 2014

I'd like to change /comp.php to /comp but I have only found articles on how to remove .php completely and I don't want to do that, only want to do it for this one file.

View 5 Replies View Related

Apache :: Redirect In HTAccess Does Not Work

Sep 18, 2014

One site just linked to my website with incorrect URL as URL.. want to correct this by redirecting the URL to URL.... Therefore, I add the following line in my .htaccess, as follows: Redirect 301 /aor/%e2%80%9d URL...

However, this does not work. When I input URL... in Firefox or IE, the browser still said the page not found(404) error.

View 1 Replies View Related

Apache :: How To Redirect To Different File In HTAccess

Jan 27, 2013

So, I would like my htaccess file to check if a file exists and if it doesn't then redirect to another file. How would I go about doing this?

View 5 Replies View Related

Apache :: Using Alias With HTAccess Files

Feb 20, 2013

Apache httpd Users mailing list, but nobody there has responded in several days. I'm using mod_alias to map URLs to directories that are outside of Apache's DocumentRoot. However, it seems that .htaccess files are being ignored in these directories.

View 6 Replies View Related

Apache :: HTAccess - Remove Same Word From End Of URL?

Mar 18, 2013

I've modified my old website, and now need to remove the phrase "cheap-products"

Some example url's


How do I make it so it will forward (seo wise) to the following


View 4 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved