Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Apache server - Directing to the same page
Old 10-08-2008, 11:38 AM Question Apache server - Directing to the same page
Junior Talker

Posts: 1
Trades: 0
Hey people, I need your help, thanks in advance!

I have an appche server 2.x. + PHP, And I woundered rather it is possible
to output the same page (i.e. "a.php") for a request of whatever page.

I will give an examples:

if the client try to reach "/hello/index.php" (which do not really exist in the server)

Can apache just tell the client -> I return you that page (/hello/index.php) but infact, this page's content is "a.php"'s content.
wiout 404 Errors and stuff?

Thanks again

Lior.
MimeMier is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-09-2008, 02:01 AM Re: Apache server - Directing to the same page
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Add something like the following into your .htaccess (mod_rewrite should be enabled):

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /a.php

Then RTFM a lot about mod_rewrite
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to Apache server - Directing to the same page
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10884 seconds with 12 queries