.htaccess To Lighthttpd Rewrite

Sep 23, 2008

I had a .htaccess working in my previouse hosting. It is not working with the new hosting which has lighthttpd.

Can anyone help me to change my below htaccess modrewrite code to lighthttpd url rewrite? Its urgent please.

RewriteEngine On ...

View 4 Replies


ADVERTISEMENT

Convert .htaccess To Lighthttpd Rewrite Rule

Jun 5, 2007

How do I go about converting the follow .htaccess file

Code:
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} /blogs/(clientscript|images)/
RewriteRule ^(.*)$ $1 [L]

RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/comment-([0-9] ).html blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3&c=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/feed/ blogs/syndication.php?entry=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/ blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/category/([-a-z0-9] ).html blogs/viewblog.php?username=$1&categorydata=$2 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/ blogs/viewblog.php?username=$1&month=$3&year=$2 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2}).html blogs/viewblog.php?username=$1&month=$3&year=$2&day=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/archive.html blogs/viewblog.php?username=$1&displaymode=archive [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/feed/ blogs/syndication.php?username=$1 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/ blogs/viewblog.php?username=$1 [QSA,L]
to work with lighthttpds rules?

View 2 Replies View Related

Changing Code To Lighthttpd Htaccess From Apache

Jul 7, 2009

trouble with users mis-using hot-linking feature, so he wants some restrictions to b set via htaccess

He has given me a code which is used for htaccess in apache, but he wants this to work in lighthttpd, I am not sure if this would work in lighthttpd htaccess,

this was the code given to me to b worked on:

Code:
RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$

#allow hotlinking for thumbnails
RewriteCond %{REQUEST_URI} !_thumb

#allowed website to hotlink (don't forget to add your own site !!)
RewriteCond %{HTTP_REFERER} !^[url]

#display no-hotlink.jpg instead of the requested image
RewriteRule .(jpg|jpeg|gif|png|bmp|ico)$ [url]

can any one help me for getting this code re-written for lighthttpd version htaccess file and where to enter this code -- using hypervm/kloxo on his vps

View 5 Replies View Related

Htaccess Rewrite

Mar 14, 2007

When someone types in myforum.com/forums.html I want it to display the main forum (myforum.com) with ...../forums.html in the url bar. But without actually having a forums.html file present on the server. Can this be accomplished with htaccess?

View 2 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 :: HTAccess Mod Rewrite Get Variables Not Working

Sep 7, 2013

I'm trying to rewrite the urls across a site I'm developing, which pass get variables like the following:

localhost/link/link1/page.php?id=12
would look like:
localhost/page/12

The first link in the htaccess file works fine, but the following ones don't (whatever the order, the first one works). I'm attaching a snippet of the file here:

# http://localhost/html/content_quiz/quiz-results.php?quizid={number}# to# http://localhost/results/quiz/{number}RewriteRule ^results/quiz/([0-9]+)/?$ /html/content_quiz/quiz-results.php?quizid=$2 [NC,L]# http://localhost/html/content_pages/results.php# to# http://localhost/resultsRewriteRule ^results/?$ /html/content_pages/results.php [NC,L]# http://localhost/html/content_quiz/grade.php?quizid={number}# to# http://localhost/quiz/{number}/gradeRewriteRule ^quiz/([0-9]+)/grade/?$ /html/content_quiz/grade.php?quizid=$3 [NC,L]

View 1 Replies View Related

Apache :: Writing Htaccess Rewrite Rule?

Feb 21, 2014

I'm trying to change url structure so instead of /default/category/product.html it would show /category/product.html

With this line I've managed to do it on my personal blog

RedirectMatch 301 /default/(.*) //$1

But when I've implemented it on a customers Magento site it started showing double slashes like this //category/product.html and the whole template just collapsed .

View 17 Replies View Related

Htaccess :: Rewrite A Hash # Or Other Symbol To A Question Mark

Oct 29, 2009

I simply want to rewrite a hash # or other symbol to a question mark via htaccess. So any hash in the URL anywhere should internally rewrite to a ?. All I want is to remove ? from the URL really.

View 2 Replies View Related

Wierd Htaccess Url Rewrite- Rewrites All Index Files

Apr 19, 2008

I have worked with mod_rewrite for years and never encountered this problem. I am converting html pages to a single php file and it works perfectly. I used htaccess the rewrite the urls to appear the same so that no links would be broken or lose SEO value.

The only problem is that my friend who also helped build the sites added different directories and within those directories are index.htm files that serve as a home page for the separate directory. Like /info/index.htm and /help/index.htm within the root directory. The problem is that for some reason my mod_rewrite directs to the main index.htm rewrite even if I include the whole path to the file. In htaccess I have this so far:

RewriteEngine on

RewriteRule index.htm$ index.php [L]
RewriteRule servers.htm$ index.php?action=servers [L]
RewriteRule movies.htm$ index.php?action=movies [L]
However there is a directory named "info" and inside that directory it has an index.htm file and it seems to conflict with my first mod_rewrite. I tried using:

RewriteRule /info/index.htm$ index.php?action=info [L]
and used other methods but none seem to work any ideas?

View 1 Replies View Related

Apache :: HTAccess Won't Process Rewrite Rule Despite Many Attempts

Apr 1, 2015

It should be a straight forward change. [URL] .... does not redirect to [URL]...... It simply tries to load /denver-cars/ and denver-cars is in the URL. Am I missing something here? I have tried moving it up and down the list of rules and have tried numerous types of flags to no avail. Everything else in the htacess works fine with out the line:

RewriteRule ^/(.*)-cars/ /newcars-in-$1/ [NC,R=301,L]

Here is my htaccess:

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
# Force www
# Redirect google index dir's to new dir
RewriteRule ^/(.*)-cars/ /newcars-in-$1/ [NC,R=301,L]

[code]....

View 1 Replies View Related

Apache :: HTAccess And Rewrite Rule - Show Existing Images

Mar 8, 2015

I'm using .htaccess to show existing images instead of images which does not exist.

RewriteBase /images/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)_(.*)1200x900.jpg$ esittely_$21200x900.jpg
RewriteRule liiga1200x10.jpg esittely1200x10.jpg
RewriteRule liiga670x10.jpg esittely670x10.jpg [L]

Everyting works fine if an image does not exist.

But if an image does exist, the second RewriteRule
RewriteRule liiga1200x10.jpg esittely1200x10.jpg
will be used.

Why is that so? How could I modify my code to prevent that? 

View 2 Replies View Related

Apache Rewrite ==> Lighttpd Rewrite

Jul 24, 2008

I dowload a scripts with a .htaccess file

Code:
DirectoryIndex index.php
RewriteEngine On
RewriteRule ^link/([0-9]+)[/]*$ /redirect.php?id=$1
RewriteRule ^link/([a-zA-Z0-9]+)[/]*$ /redirect.php?tag=$1

I want to convert it to lighttpd rewrite rules, urgent, also I can't contact with the scripts author,

View 0 Replies View Related

Recompile Php For Lighthttpd

Apr 7, 2007

can anyone instruct me how to Re-compile php for lighthttpd, those people who had expierence with Lighthttpd?

View 2 Replies View Related

How To Restart Lighthttpd

May 28, 2009

how to restart lighthttpd?

I was asked to restart lighthttpd at my friend host, he has 6 sites running, and of the site is down, host has asked him to restart the server, as he is away, he wanted me to restart, but I have no clue how to restart lighthttpd,

It will be really helpful if u can guide me for : if possible for the domain alone, else for the entire server

current options available :
lxadmin - hypervm
ssh connection

let me know the steps and code if any.

View 4 Replies View Related

How To Activate Lighthttpd

Jun 21, 2009

through lxadmin/kloxo how to disable apache and enable lighthttpd ?

if any code or any method plz explain in detail, never done, now need to do it on my friend vps as he is having problem with apache loads

View 9 Replies View Related

Lighthttpd On What Cpanels?

Apr 15, 2009

I want to know lighthttpd works on what different kind of control panels

I am aware it works on lxAdmin, I want to maximize the options for more control panels which would be flawless

View 1 Replies View Related

Lighthttpd Conf

Oct 25, 2008

I don't have location/ in conf file where should this be placed under or above what content should this be added?

View 4 Replies View Related

VPS With Panel And Lighthttpd

Nov 9, 2007

im thinking about getting a VPS with Cpanel or Plesk, but i would like to use lighthttpd instead of apache.

View 12 Replies View Related

Setting Up Domain With Lighthttpd

Jun 9, 2009

its been long time since I have set one and its been really bugging with the feather theme interface, which I haven't used before

now, here is the pt.

I have 3 ips , I want the main ip to be unique
i.e assuming .2, .3 and .4 are the the ips we have ben provided with, where .2 is the main ip of the server (lxadmin)

now, in the dns template, I have 6 options where ip has to be assigned, as -
base, cp, mail, ns, ns1, ns2

I have set the base,cp, mail, ips to .3

I don't have a clue on what to set for the ns, ns1, ns2

I want .3 to be shown as the pinged ip when site is pinged.

We have set .3 and .4 as the nameserver ips in the registrar, so do I need to provide .3 as the ns1 ip and .4 as the ns2 ips or both the ips have to be .3
and what should be the ns ip?

View 1 Replies View Related

Onediting Lighthttpd File

Oct 30, 2008

I have been given a code by the coder to add in the conf file under the location / in conf file but there is no location code under conf file. I am not sure where to add this location / in the conf file ? need help on where to add this code in lighthttpd file
All I wanted to do is just an add an rewrite rule for one of the file and the coder has mentioned to add it below location / in conf file

View 6 Replies View Related

Lighthttpd - Memory Leak

May 27, 2008

I am using Apache now on my VPSes but i want to try it again with lighthttpd as it will use less resources, but the only problem is that lighthttpd is taking up lots of memory and i've read about a memory leak.

View 14 Replies View Related

Lighthttpd How To Enable Modrewrite

May 1, 2007

I am installing phplinkdirectory in lighthttpd, keep having problems with Mod Rewrite, everytime, I enable Mod Rewrite, 404 errors come out. What should I do?

View 7 Replies View Related

How To Deactivate Lighthttpd And Activate Apache

Jul 9, 2009

how to de-activate lighthttpd and activate apache?

my friend is having some problem in his vps so he wants to get back into apache interface...

he is using kloxo/hypervm interface

View 4 Replies View Related

Lighthttpd :: Configuration Of Plugins Failed. Going Down ...

May 22, 2008

Installed lighttpd but unable to run it properly.

[root@ssserver1 lighttpd]# /etc/init.d/lighttpd restart
Stopping lighttpd: [FAILED]
Starting lighttpd: [ OK ]
[root@ssserver1 lighttpd]# netstat -anp | grep light
[root@ssserver1 lighttpd]#

Checked logs.

2008-05-21 23:12:43: (mod_fastcgi.c.904) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 No such file or directory
2008-05-21 23:12:43: (mod_fastcgi.c.1340) [ERROR]: spawning fcgi failed.
2008-05-21 23:12:43: (server.c.908) Configuration of plugins failed. Going down.

View 1 Replies View Related

How To Have Multiple Domains With 1 Site On Lighthttpd

Nov 4, 2008

How to have multiple domains with 1 site on lighthttpd

Its simple 2 domains and 1 forum. The links should work as 2 individual sites.
[url]

The main site would be site where the site2 will be the additional site shadowing site
I need the code for lighthttpd

View 1 Replies View Related

Having An Images HTTPD Server Only: Lighthttpd

May 5, 2007

For my website I have a server which houses all of my gallery IMAGES of my user profiles. There are over 100,000 images on the server and it's only purpose is to provide those images with http.

However, the http server also has PHP installed, and it's only purpose is for uploading new images. Therefore users eventually get redirected to the images server where they can upload the image.

This all works, but in the future I want to remove the PHP side to the server. I also want to change the whole server program from Apache to Lighthttpd. This is because, lighthttp is a very low overhead web server program, but also provides very little features.

So I was wondering, if I was to do so, and since PHP is not installed, then I would have to make the upload pages on the main http server (which has PHP and Apache). Then I would have to make the main server send the uploaded image to the the lighthttp server via some sort of the scp system call, via PHP. I know that this IS possible, but when it comes down to security holes and so on, would this method really be worth it?

Generally I want to have the lighthttp setup only because it eliminates having to have any dynamic content. Obviously this can also be done with apache (removing dyanmic content), but lighthttp may be more efficient for static content.

View 3 Replies View Related

Folder And File Protection In Lighthttpd

Jan 15, 2007

to install LightHTTPD but I want to know how can I protect folders like using on apache i can put a .htaccess and it prompts me to enter pass etc...

How do I do that in lightHTTPd?

How do I disallow certian file extensions from public eyes like on my current server I disabled viewing of .datab files and when someone types in the location of mydb.datab they get a forbidden message.

how do i do that in lighthttpd?

View 2 Replies View Related

ASP.NET & URL Rewrite

Oct 27, 2007

I want a user to type myUrl.com/JohnSmith and go to John Smith's homepage. His homepage is actually a dynamic page that is shared with all users which is myUrl.com/Shared.aspx?ID=1234. I have created a URL rewrite script which finds the folder specified (JohnSmith) and finds the user ID from the database. It then displays the Shared.aspx page for the proper ID.

This works on my local machine because it's using Visual Web Developer as the hosting engine so it executes ASP.NET for every page load. When I upload this to an online host using IIS it fails because there is no folder named JohnSmith. I get a 404 online where I would get the proper page on my machine.

I have tried to work with 3 hosts to make this happen and noone can get this to work. I really need to either know what to tell the host to change or find someone who knows how to do this. I am obviously willing to change hosts if that's what it takes.

View 5 Replies View Related

Rewrite URL

Feb 27, 2008

I'm wanting to make it so everytime someone goes to a link starting with:

www.sample.com/~

it rewrites it to this:

sample.com/~

How do I do this?

View 3 Replies View Related

How I Can Use Mod-rewrite With Lighttpd

May 4, 2009

how I can use mod-rewrite with lighttpd.

Actually I am going to use phpprobid system and it has in built function for mod rewrite but I think it is for apache as if i turn it on I cant access pages

View 1 Replies View Related

Lighttpd Rewrite

Mar 30, 2009

How I can convert the following into lighttpd rewrite?

RewriteCond %{REQUEST_FILENAME}

View 4 Replies View Related







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