View previous topic :: View next topic |
Author |
Message |
MarkJ -
Joined: 23 Dec 2006 Posts: 3
|
Posted: Tue Jan 02, 2007 11:54 pm Post subject: .htaccess file needs altering? |
|
|
Hi
I don't know much about htaccess files and I need this code (looks pretty straightforward compared to some htaccess files I have seen) to be able to work on my server:
Code: | Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(shop)(/.*)?$ cgi-bin/dyse/view.pl?merch=instrumentpro&dir=$1&path=$2 [L] |
It directs users to the instrumentpro directory. Without the above the script won't run it seems.
Any ideas?
Regards - Mark _________________ My Site: http://bluesplayer.co.uk |
|
Back to top |
|
|
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Wed Jan 03, 2007 12:37 am Post subject: |
|
|
You can't use .htaccess files on Abyss.
Sorry. |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Jan 03, 2007 12:52 am Post subject: |
|
|
You can disect the source from the .htaccess file and use it with Abyss Web
Server. Have a look in the Beta forum for the 2.4 release. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jan 03, 2007 12:53 pm Post subject: Re: .htaccess file needs altering? |
|
|
MarkJ,
This .htaccess file define an URL rewriting rule. This feature is available on Abyss Web Server version 2.4 which will be officially launched in a few days.
But you can go to the "2.4 Beta" section and download a copy of that new version. After upgrading to it, select "URL Rewriting" and add a new rule defined as follows:
* Virtual Path Regular Expression: ^/(shop)(/.*)?$
* Add a condition which variable is REQUEST_FILENAME and which operator is "Is not a file"
* Set "redirect to" to /cgi-bin/dyse/view.pl?merch=instrumentpro&dir=$1&path=$2
* Leave all the other parameters to their default values.
* Press OK.
* Press Restart _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|