mod_rewrite help


 
Thread Tools Search this Thread
Top Forums Web Development mod_rewrite help
# 1  
Old 08-05-2009
mod_rewrite help

Here's my situation.

When a user access the site domain.com it redirects to /portal which displays SKIN1 by default.

When a user accesses the site domain.com/portal?branding=SKIN1 it displays SKIN1 by default as well.

When a user access the site domain.com/portal?branding=SKIN2 it displays SKIN2 as its supposed to but as soon as that same person goes to domain.com or domain.com/portal it shows SKIN2 by default and no longer SKIN1

I need a rewrite rule or something that will say /portal always points to SKIN1 accept for when accessing SKIN2 and only show SKIN2 when its chosen.

Let me know if this makes any sense?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

Mod_rewrite to handle paths ?

I hope someone can help. I somewhat know what a mod_rewrite does which is URL rewiring. What I don't know is how to make the mod_rewrite to handle paths ? Can this be why an AngularJS file is not being loaded ? (36 Replies)
Discussion started by: MaxtheCat
36 Replies

2. Web Development

Mod_rewrite - URL rewrite based upon HTTP_REFERER

Hello, I have added following rewrite cond and rewrite rules but it does not work. RewriteCond %{HTTP_REFERER} ^http://192\.168\.1\.150/categories/.*$ RewriteRule ^(.*)$ http://www.blahblah.com/ When I hit url : http://192.168.1.150/categories/881-Goes?page=7 in my browser - it... (2 Replies)
Discussion started by: ashokvpp
2 Replies

3. UNIX for Advanced & Expert Users

Apache Mod_rewrite Mystery

Hi Folks, I am running on a CentOS 6.3 server, whose primary function until recently has been my Zimbra mail server exclusively. I added wordpress and I have not been disappointed, with this one exception of Apache mod_rewrite. I have already tried to set selinux to permisive to eliminate that... (5 Replies)
Discussion started by: cjm51213
5 Replies

4. Web Development

Mod_rewrite http to https

Hi Team, I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https. Requirement below:- want to match a word (test) on the url and if matches then it should rewrite to https. example:- ... (1 Reply)
Discussion started by: arumon
1 Replies

5. Web Development

Tricky mod_rewrite for clean urls problems when fetching external sources

Hi, I have problems with mod rewrite. I will try to describe... I want clean urls but fail to make it work propperly. Maybe I have problems, because the content displayed is fetched from my other site... There is a lot of stuff I already red about this, but somehow I can not find a solution... (2 Replies)
Discussion started by: lowmaster
2 Replies

6. Shell Programming and Scripting

Need help with mod_rewrite rule, redirect

I have to redirect http://www.domain.com/(*)/(*)-hotel-deals.html to http://www.domain.com/(*)/(*)-hotel-deals where of course (*) are dynamic. Any ideas how this could be accomplished? (0 Replies)
Discussion started by: EXT3FSCK
0 Replies

7. Web Development

Apache mod_rewrite: from 'friendly' url to actual path

I'd like to translate a friendly url such as: http://www.xxxyyyzzz.com/page/12345678/ to: http://www.xxxyyyzzz.com/page/12/34/56/78/ Seems simple enough, but I cannot figure out how. Any one done this before? (2 Replies)
Discussion started by: markericksen
2 Replies

8. Web Development

mod_rewrite RewriteMap - possible to 404?

In my strenuous efforts to get SEO-friendly urls, I'm using a rewrite map in my apache setup: RewriteEngine on RewriteOptions MaxRedirects=5 RewriteMap seo prg:/Applications/MAMP/htdocs/map.php #map requests for the original file to the new SEO friendly urls RewriteCond... (0 Replies)
Discussion started by: sneakyimp
0 Replies

9. Shell Programming and Scripting

mod_rewrite problem

hi i'm very new to mod_rewrite. I can't seem to have this work. I have a site which has 4 pages : home, links, adverts and contacts page. the adverts page is linked to this url http://www.xxxxxx.com/adverts.php. What i want is that whenever the adverts page is clicked , it will show... (0 Replies)
Discussion started by: arsonist
0 Replies
Login or Register to Ask a Question
istgtcontrol(1) 					      General Commands Manual						   istgtcontrol(1)

NAME
istgtcontrol - istgt iSCSI target command utility SYNOPSIS
istgtcontrol [options] <command> [<file>] DESCRIPTION
istgtcontrol is a command and control utility for istgt(1). It can be used to query and change the status of a local or remote istgt instance. istgtcontrol supports the commands denoted below to interact with the istgt instance. By default it connects and authenticates to the iSCSI target portal specified in the istgtcontrol.conf configuration file and uses CHAP credentials denoted there, if any. Both can be overrid- den by using the respecitve command line arguments. COMMANDS
istgtcontrol understands the following commands which can be forwarded to istgt: noop Do not actually do anything, but test responsiveness of the portal and test CHAP credentials only. version Retrieve the istgt version number providing the iSCSI portal istgtcontrol connected to. list List all, or the specified targets only, which shared by the portal. load Load a new media to the specified unit. This command issues the same command as if a drive tray had been closed on a SCSI device. unload Unload a media from the specified unit. This command issues the same command as if the drive tray had been opened from a SCSI device. change file Change the loaded media by the specified unit. This command is equivalent as if a new media (for example a DVD-ROM or tape car- tridge) had been inserted in the SCSI drive. The "file" argument is interpreted as filename to be loaded. reset Reset the specified LUN of the portal. info Display all connections of the portal OPTIONS
-c config Use specified file as configuration file instead of the default file. -h host Override the target portal by the specified host name or IP address. This defaults to "localhost" if no other host was specified in the configuration file. -p port Override the target portal port by the specified port number. This defaults to "3261" if no other port was specified in the configu- ration file. -t target Specifies the target IQN which should be affected by the command given. There may be a default given in the configuration file. The keyword "all" is accepted by some commands and matches all exported volumes. -l lun Specifies the target LUN which should be affected by the command given. This defaults to "0" unless another default was provided in the configuration file. -f flags Specifies flags passed to the portal when loading a new media. This defaults to "ro". Supported flags are: "ro", "rw", "extend" and "dynamic". -s size Specifies the size of the meda to be loaded. The default is to auto-detect the media size. -q Quiet mode, supress non-critical outputs. -v Verbose mode, gives more output during operations. -A method Sets the preferred authentication method for logging in to the portal. This overrides any method specified in the configuration file. Supported methods are either CHAP/Mutual or CHAP/Auto. -U user Sets the user to authenticate on the portal. This overrides any username specified in the configuration file. -S secret Set the secret used to authenticate on the portal. This overrides any secret specified in the configuration file. -M muser Set the mutual authentication user. This overrides any user specified in the configuration file. -R msecret Set the mutual authentication secret. This overrides any secret specified in the configuration file. -H Display a brief usage summary and exit. -V Display the istgtcontrol version number and exit. FILES /etc/istgt/istgtcontrol.conf Configuration file SEE ALSO
istgt(1) AUTHORS
Daisuke Aoyama <aoyama@peach.ne.jp> This manual page was written by Arno Toll (<debian@toell.net>) for the Debian GNU/kFreeBSD system (but may be used by others). istgtcontrol Oct 07, 2011 istgtcontrol(1)