Forum Moderators: mack
All site pages construct as 404 error message (you can see it on our page <snip> ). We have .htaccess to readdress all query to our script.
This way is beautiful but we have some troubles on it.
All answers of Apache web server are started as 404...
And search engines can't to see pages constructed by this way.
How we can to avoid 404 signature on this?
[edited by: Woz at 12:08 am (utc) on June 2, 2003]
[edit reason] no URLs please see TOS#13 [/edit]
Welcome to WebmasterWorld [webmasterworld.com]!
Instead of using the default 404-Not found mechanism of the server and a custom ErrorDocument directive, you can have .htaccess check for the page's existence BEFORE any response from the server. The following code will redirect all non-existent pages to myscript.php and append the requested page path as a query string:
RewriteCond %{REQUEST_URI} !-U
RewriteRule ^(.*)$ /myscript.php?page=$1 [L]
Ref: Apache mod_rewrite RewriteCond [httpd.apache.org]
Jim
We have some troubles with it :)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}!-f
RewriteRule ^(.*)$ /cgi-bin/rejump_db.pl?$1 [L]
One - to turn on. It was disabled.
One - -f mode... I don't understand but!-U mode in RewriteCond does not work on our server...
Do you know why? We break some good heads on it.
P.S. Is Rewrite your specialization? I see a lot of your post's for this theme.