LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2005, 01:05 AM   #1
mikeindo
Member
 
Registered: May 2004
Posts: 43

Rep: Reputation: 15
htaccess 'redirect permanent' failing


first say i dont have root privileges on the box in question; just a home directory as a regular user. from what i understand, .htaccess redirects can be for old files in a new location, or just forwarding URL to another URL, which is sorta what i'm doing here. here's what the pertinent line looks like in .htaccess:

Redirect permanent /wishlist /index.php/wish

i shouldve said this is also part of a Wordpress blogging installation (combed support forums there too) and server admin said he doesnt yet have mod_rewrite installed yet, so have to use /index.php. Wordpress' rules.

So, if i enter http://[website.com]/index.php/wish, my wishlist page loads. but if i enter http://[website.com]/wishlist, i get 404 Not Found error. further research revealed that Apache considers things like "/wishlist" to be an actual file and then looks for any file in my dir named wishlist. there is none, so it 404's.

so then i try to trick Apache. i create a wishlist.htm file and drop it in there. but instead of Apache now finding the file and redirecting the request to /index.php/wish as per the .htaccess line above, it just displays wishlist.htm ("hello there").

tried w/o "permament" - nothing. so whats missing? why does Apache consider it a file? can i turn that behavior off? fyi, i know .htaccess is in the right spot...

Last edited by mikeindo; 07-07-2005 at 01:09 AM.
 
  


Reply


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
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
Htaccess with a redirect Diode Linux - Networking 0 10-28-2003 06:23 PM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM
permanent mount jerrod Linux - Newbie 4 04-14-2003 06:36 PM
X failing to load; AddScreen/InitScreen failing for driver 0 weblion Linux - Software 1 08-01-2002 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:27 PM.

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