Redirect problem

This is a discussion on Redirect problem within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi! I read somewhere that this would redirect all request for non-existent pages/directories to mypage.php: Options +FollowSymLinks ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-17-2007
Markus W.
 
Posts: n/a
Default Redirect problem

Hi!

I read somewhere that this would redirect all request for non-existent
pages/directories to mypage.php:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /mypage.php

The problem is it redirect everything, also requests for existing pages and
directories. I want to be able to access existing content directly. Please
advice!

Thank you!

markus

 


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

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



All times are GMT +1. The time now is 01:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0