nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-22-2008, 12:36 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: centos 5
Posts: 15
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
Sponsored Links
  #2 (permalink)  
Old 06-22-2008, 01:42 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 910
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 06-22-2008, 06:57 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: centos 5
Posts: 15
Rep Power: 0
rootadmin is on a distinguished road
Default

thanks problem solved
Reply With Quote
Reply

Bookmarks

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 On

Similar Threads

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


All times are GMT +5.5. The time now is 02:16 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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