Redirect To Folder Based On Login Info With .htaccess

Aug 3, 2007

Here is the situation.

I would like for people to go to [url] and be prompted for a login (.htaccess). Then depending on the login, redirect to the appropriate folder.


User 1 logs in as example1 with password xxxxx. It redirects them to with the successful login.

User 2 logs in as example2 with password xxxxx. It redirects them to with the successful login.

Is this even possible with .htaccess? If not, is there any way to do this via a php script or anything?

View 1 Replies


Redirect From One Folder To Another Via .htaccess

Jan 13, 2007

We had a subdomain that was [url]and we have now decided we would like to use [url]

I have setup the gallery on the new server as [url]

I would like to be able to if someone had a link [url]for it to redirect them too [url]

View 3 Replies View Related

Apache :: HTAccess Redirect Root To Folder

Nov 28, 2006

I searched URL....but I still could not get this to work.I need a redirect to a certain folder when people visit the root directory of my site.

View 7 Replies View Related

Domain Name Server (DNS) Hosting With Redirect Based On Location

Oct 27, 2009

i am looking for dns hosting with redirect to a server in Europe or usa based on location.

View 2 Replies View Related

Redirect Old Url To New Url Using .htaccess

Jun 6, 2009

Apache redirect. I would like to point all the old site URLs to my site homepage e.g.

[url]should point to [url]

or better,

[url]should point to [url]

tell me the redirect code i need to add to my .htaccess file to make this work?

View 3 Replies View Related

.htaccess Redirect

Apr 28, 2008

I know how to do a redirect to a new URL using a .htaccess file if I am pointing to a different server, however both and are pointing to the same server, I just am wondering what I would add into my .htaccess file to get it to redirect from to

View 4 Replies View Related

301 Redirect In .htaccess

Feb 27, 2007

I am trying to redirect from:

over too:

Now the software i'm using on the /forums/ is different, so i need ALL inbound links to any area of phpBB2 to redirect to /forums/ and be stripped of the "index.php=topic111.22."

All the redirects I have tried seem to leave the rest of the URL on then give a page not found.

View 3 Replies View Related

301 Redirect With .htaccess

Jul 12, 2007

I am attempting to do a directory 301 redirect with a .htacccess. I have followed the instructions but it is not working. I have heard that I will have to wait for Apache to restart on the server before it will work. Is this true?

View 3 Replies View Related

A Folder Redirect

Feb 22, 2007

I have a question regarding folder redirection. For example if i have a url like

if i rename the folder forum to board and i want that if user put address then it will automatically redirect to is that possible i want that every topic or file redirect to new folder?

View 3 Replies View Related

.htaccess - Redirect To A Subdomain

Jul 10, 2009

I wasn't able to just export and import so I had to manually recreate content. I used the same permalink structure in hopes that I "might" be able to do a re-direct. Just now sure if A)It is possible or B)How to do it.



Am I able to redirect all traffic that comes in and replace the "" with ""?

View 4 Replies View Related

Redirect All Users Except Me With Htaccess

Mar 13, 2008

I'm going to be doing some upgrades on my site and I want to redirect all users to a different page while I do the upgrades but I need to allow my self too have access.

I have done this before with a htaccess rule, but I can't remember what it was and can't seem to find it anywhere.

View 2 Replies View Related

.htaccess Redirect *.pdf To /newdir/*pdf

Jan 24, 2007

I want to redirect all requests for .pdf files from one dir to another.

NEW DIR: when someone requests:

it loads:

I think I need to use RedirectMatch or RedirectRule to check for *.pdf but I have no idea how to write the expression matching thing.

View 2 Replies View Related

.htaccess Redirect Configuration

May 19, 2007

I have 2 domains, [url]and [url]. Notice that the old one has www, and the new one doesn't.

I want to redirect ALL html pages from [url]to the page [url].

I have Googled a bit and found this code to use in the .htaccess file of the old domain:

RedirectMatch (.*).html$ [url]

However it does not work. It only redirects from [url]; it does not redirect from [url] or any internal pages.

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

Possible To Apply .htaccess To Only One Folder

Dec 19, 2007

Is it possible to get the .htaccess file to apply to only one folder? As in if we stick it in the public_html/ folder, how can we prevent those rules from being applied to all the folders in public_html/ folder?

View 3 Replies View Related

How Do U Redirect A Folder To Another Server

Mar 3, 2008

I'm hosting a site for a organization but using our own servers. Problem is that they did not want to use a subdomain link to our server but instead wants the server to appear as www(dot)abcdefg(dot)com/ourserver/

can this be done.

Currently my options are :

1) Force them to use sub domains and redirect

2) HTML "Frame" their website to ours (ungraceful method)

3) Truely Redirect it to our server by some means...

View 8 Replies View Related

Htaccess Redirect (from A File With Spaces)

Nov 26, 2006

I'm trying to redirect from a filename that contains spaces using .htaccess

for example, I want to redirect /test 2.html to

I've tried:

ReDirect /test 2.html
ReDirect /test 2.html
ReDirect /"test 2".html
ReDirect /'test 2'.html
ReDirect /test%202.html
ReDirect /"test 2.html"
ReDirect /'test 2.html'

And a few others. I can't seem to get the syntax right, and always end up getting an internal server error message. Anyone have any ideas?

View 6 Replies View Related

Using Htaccess To Redirect From Http To Https

Jun 16, 2009

if there is anyway to redirect my users to https no matter what page they are on using htaccess?

I really don't fancey using full url extentions and changing them on every link on my site. I can get the homepage to redirect to https but not any other.

If there is no way to do this does anyone know the shortest hyperlink to use the redirect?

View 7 Replies View Related

Htaccess Redirect Site Pages

Apr 25, 2009

Ii need to redirect , and login.html to

Do anyone know how to do this with .htaccess?

View 3 Replies View Related

Htaccess - Redirect All Visitors Except Certain IP Address

Feb 25, 2008

could not find a solution for this reversed blocking

I would like to redirect users who access the site from any IP address to be redirected like this:
RedirectMatch /(.*)$ hxxp://

and have anyone from an IP address of to just access/view the regular site, so not to be redirected.

how I can do this in my .htaccess file?

View 4 Replies View Related

.htaccess Redirect All Pages To Https://www

Jul 17, 2007

I'm not to good with htaccess.

I am able to find information on the 2 items I am looking for separately but not together.

I need all pages on a site to redirect to the www ssl version of the page.

[url] > [url]
[url]> [url]
[url]> [url]

View 3 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 index.php is accessible from 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 (, it doesn't work ...

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 :: 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 :: Create HTAccess Redirect?

Feb 3, 2014

Google keeps indexing some of my articles in this form:

However I'm mainly using:

So in a way I have duplicated content and also the first link does not show the modules I want. I want to create a .htaccess redirect than whenever someone joins on the first link to be automatically redirected to the second link.

View 5 Replies View Related

Redirect CPabel & Webmail Login

Feb 11, 2007

At present, when our customers login to their cPanel and Webmail accounts they goto the following URL's to login

I would like to configure it so that they can only login when they visit our corporate website and login via a login box which we will provide on our website, so i need the cpanel and webmail urls to be redirected to a page of our choice on our website.

How would i do this so it takes affect on all our customers accounts.

We are doing this for a marketing reason so that whenever they need to login, they have to visit our website (and see our services more)

View 3 Replies View Related

Redirect Whole Folder In CPanel To A File

Jul 9, 2008

a way to set up a redirect in cPanel so that every file within a particular folder is redirected to a specific file.

For example: I want to redirect every file in to

Is this possible in cPanel?

If not, is there another way to do this?

View 2 Replies View Related

Redirect Or Block POST Request With .htaccess

Apr 22, 2009

if there is anyway to block/redirect the POST request to another page using .htaccess ?

The reason is my site is getting hammer with DDOS attack where they target my index page with request like below: ....

View 5 Replies View Related

Copyrights 2005-15, All rights reserved