nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Lighttpd Gallery2 URL Rewrite (.htaccess) SEO Rules

This is a discussion on Lighttpd Gallery2 URL Rewrite (.htaccess) SEO Rules within the Web servers forums, part of the Mastering Servers category; The following is .htaccess file i used with apache , now i want the same functionality with lighttpd , but ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22-06-2008, 12:36 PM
Junior Member
User
 
Join Date: Jun 2008
OS: centos 5
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rootadmin is on a distinguished road
Default Lighttpd Gallery2 URL Rewrite (.htaccess) SEO Rules

The following is .htaccess file i used with apache , now i want the same functionality with lighttpd , but since lighttpd do not support .htaccess then what should i do then ??
Thanks In Advance.
PHP Code:
#RewriteEngine on
##point to installation directory
##if it is the root dir,enter /
#RewriteBase  /

RewriteRule   ^show.php/(.*)$ show2.php?img=$[L]
RewriteRule   ^out.php/([a-z]{1})(.*)$ out2.php?$1=$[L]
RewriteRule   ^view.php/(.*)$ view2.php?img=$[L]
RewriteRule   ^image.php/([a-z]{1})(.*)$ images2.php?$1=$[L]
RewriteRule   ^gallery/([0-9]+)-([^/]*)/(.*)$ gallery.php?gal=$1&img=$[L]
RewriteRule   ^view/([0-9]+)-([^/]*)/(.*)$ gallery_body.php?gal=$1&img=$[L]

Reply With Quote
  #2 (permalink)  
Old 22-06-2008, 01:42 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You need to use lighttpd's mod_rewrite, add them to lighttpd.conf. The information available below
Gallery2:Lighttpd URL Rewrite - Gallery Codex

__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 22-06-2008, 06:57 PM
Junior Member
User
 
Join Date: Jun 2008
OS: centos 5
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rootadmin is on a distinguished road
Default

thanks problem solved
Reply With Quote
Reply

Tags
gallery2 , lighttpd , lighttpd seo , linux , seo


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Apache Redirect / to index.php using mod_rewrite .htaccess kasimani Web servers 3 30-01-2010 12:37 AM
Redirect + Rewrite Problem in Lighttpd Web Server Lamba Web servers 2 19-05-2008 10:50 PM
Redirect + Rewrite Problem in Lighttpd Lizard King Web servers 4 17-07-2007 09:44 AM
.htaccess problems rcordeiro Linux software 4 05-07-2006 07:32 PM
script to rewrite data. kavi Shell scripting 3 18-09-2005 12:13 AM


All times are GMT +5.5. The time now is 05:49 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38