The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 enjoyed the article
Author: john 
Date:   12-10-01 06:22

I found this article to be hepful. I have been scouring the web for info on rewrite. Are there any principal resources other than the apache doc and the rewriting guide?

At one point the author used [R=permanent], what would happen if he/she didn't use permanent??

thanks, and again, I enjoyed the article.

-john

Reply To This Message
 
 Re: enjoyed the article
Author: Dan Langille 
Date:   12-10-01 19:24

Practical examples are what we're all about. Documentation is fine, but without a practical example, it is all too frequently too difficult to translate the documentation into something useful.

Permanent, AFAIK, is a signal to the browser, perhaps that could be useful to the browser.

Also, if you don't do permanent, AFAIK, the URL in the browser remains unchanged. If you do it as permanent, the URL shown to the user is actually the new URL, not the old one.

It would be good if someone could could verify the above with their own testing.

Reply To This Message
 
 Re: enjoyed the article
Author: Owen Hindman 
Date:   28-11-01 01:20

the 301 is the R=permanant is basicly a Document has moved and 302 / just the R is a plane redirect .... little difference that i can see except maybe cache and proxys handle it different!


Owen Hindman

Reply To This Message
 
 Re: enjoyed the article
Author: jesse 
Date:   05-09-02 20:58

can anyone give me a quick example on how to remove or replace spaces in a url before it hits php? can i do that with mod_rewrite? i have to pass a generated variable to php and it sometimes contains spaces. most browsers will correct this, but the one i have to use does not.

Reply To This Message
 
 Apache 1 .3 v Apache 2
Author: David 
Date:   11-04-04 15:49

Hi there, found your article to be one of the most informative on the subject. Thanks for that.

I have a particular problem and thought perhaps you could shed some light on it for me.

I am playing with a cms package called Sitellite, they eir is an included .htaccess file, to rewrite the URLs, but it seems to be written for Apache2.

My server is running 1.3.x and I have breen trying to get a version of their file to work, but to no avail. I've read quite a few articles and although learning, am worried about the order of events as well as the various options. Having real trouble NOT getting server error 500 most of the time.

Is it possible you could show me (by way of example, the correct htaccess code for my apache v1 3.x


Here is what they've provided;

<IfDefine APACHE2>
AcceptPathInfo On
</IfDefine>

# Let Apache know that 'index' is really a PHP script in disguise.
<Files index>
ForceType application/x-httpd-php
</Files>

# Let Apache know that 'sitellite' is also a PHP script in disguise.
<Files sitellite>
ForceType application/x-httpd-php
</Files>

# Make SCS the directory index handler (instead of index.html or index.php).
DirectoryIndex index index.html index.php

# Instruct Apache to treat XT templates as HTML files upon direct access.
# Useful for previewing.
AddType text/html .tpl

Reply To This Message
 
 Re: Apache 1 .3 v Apache 2
Author: Dan 
Date:   11-04-04 17:36

David wrote:

> Hi there, found your article to be one of the most informative
> on the subject. Thanks for that.

You are welcome.

> I have a particular problem and thought perhaps you could shed
> some light on it for me.

Not here I can't. This is for article feedback. If you're looking for help, please try the Support Forum. That is where you will find help.

--
Webmaster

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org