Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-23-2005, 05:12 AM   #1
Registered: Mar 2004
Posts: 32

Rep: Reputation: 15
Apache redirects?! How


Is there possible to redirect an URL in apache to another url..

Lets say that i got the url trail


and want to redirect all of the 58.jpg to

should go to

And make that apply to all of my sites under /demo

Is this possible to do from a .htaccess file (I now NOTHING about thes .htacces files)..=)

Thankful for help,
-- Rincewind
Old 02-23-2005, 07:40 AM   #2
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Have you looked at mod_rewrite apache module?
Old 02-23-2005, 08:35 AM   #3
Registered: Mar 2004
Posts: 32

Original Poster
Rep: Reputation: 15
Yeah.. Thanks.. That helped a lot!!!=)

Another question though...

if I have in one of the dir a .htaccess file that looks like this:
RewriteEngine On
RewriteRule ^/pics/(.*)\.jpg$ /?showdbimage=$1
it deos not work..
Any suggestions?

Im working in
Im thinking it has to do that im not in the root directory

Does anyone have any hints for me on how to fix this??
-- Rincewind
Old 02-23-2005, 03:43 PM   #4
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Check if you've got "AllowOverride None" in your httpd.conf. If yes then it will ignore .htaccess.

Increase log level - think it is RewriteLogLevel. Check logs to see how it is rewriting and why ..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
virtual host redirects with mod_rewrite sqn Linux - Software 1 10-11-2005 09:47 PM
Redirects in Zope (ZMS) nyk Programming 0 09-06-2005 06:08 AM
Apache: Request exceeded the limit of 10 internal redirects guarriman Linux - General 1 01-26-2005 09:06 AM
ICS and 302 redirects don't mix dataangel Linux - Networking 1 08-22-2004 03:36 PM
Linux named domain redirects? Nic-MDKman General 2 02-04-2004 10:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration