The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
APACHE rewrite / redirect URL ampo Security 1 10-13-2008 04:27 AM
rewrite date marringi UNIX for Dummies Questions & Answers 5 06-10-2008 08:44 AM
grep help, how do i rewrite this weezybaby Shell Programming and Scripting 5 01-31-2008 07:57 PM
How do I rewrite to use a while instead of find? goodmis Shell Programming and Scripting 4 02-06-2007 02:20 PM
Apache Rewrite help! hassan2 UNIX for Advanced & Expert Users 1 11-11-2002 01:35 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-10-2009
jaysunn's Avatar
jaysunn jaysunn is offline
Registered User
  
 

Join Date: May 2009
Posts: 22
.htaccess Rewrite Rule

Hello All,

I have been asked to create a .htaccess redirect. I have never attempted to work with one of these files. We have a pretty vanilla LAMP setup using rhel4 apache1.3 and php4.2.3.


I was instructed to place the .htaccess file in the document root of the site and and to attempt to get to work.

My goal is to have:
Code:
http://itm2108.com/yadayada/4778198
Redirect to:

Code:
http://itm2108.com/topic/traffic.php?

Here is what I have so far. And I just keep getting a 404. It has to be .htaccess file to. I can make the redirect in the vhost but that is not acceptable.

Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^/?traffic$ /topic/traffic.php
Thanks in advance.

Jaysunn
  #2 (permalink)  
Old 07-14-2009
dnbert dnbert is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 13
RewriteRule ^blah[/]blah$ blah[/]blah2 [R=301,L]


Try something like that, although the brackets may need to be revampled
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 05:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0