mod_rewrite / .htaccess help

New to mod_rewrite? This is a good place to start.

Postby Guest » Sat Oct 20, 2001 5:04 pm

The mod_rewrite module is active on my server. The way that the file system on my site works is that there is an index.php that can be told to include files. i want to use the mod_rewrite to hide the ?inc=whatever. i want it to look like /go/whatever . i'm having problems doing this. whenever i type this for the url i get a 403 error. here is my .htaccess file:
RewriteEngine on
RewriteRule ^go/(.+)$ index.php?inc=$1.htm [R]

any help is appreciated.
-mike
Guest
 

Postby Guest » Sat Oct 20, 2001 5:50 pm

here is my second try that still gets a 403 error:

RewriteEngine on

RewriteCond %{REQUEST_URI} ^/go/([a-z]*)
RewriteRule ^(.*) index.php?inc=%1 [L]

do i need to have real directory called go? i don't understand this.
Guest
 

Postby Brett » Sun Oct 21, 2001 9:13 pm

Hi,

I don't know why you're getting a 403 error, but you shouldn't need a directory called go. Your code appears to work on my server.

One possibility is that your PHP file contains an error that is generating the 403 code.

<font size=-1>[ This Message was edited by: Brett on 2001-10-22 01:18 ]</font>
Brett
 
Posts: 82
Joined: Tue Jul 10, 2001 4:00 pm
Location: yohost.com

Postby Guest » Thu Aug 21, 2003 2:18 am

i have the same problem, mod_rewrite is activated

www.alizee-fanpage.com/info.php

but i stil get 403 forbidden > http://test.alizee-fanpage.com
Guest
 


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 47 guests

cron