Click to See Complete Forum and Search --> : .htaccess issues


Pream
08-25-2008, 05:35 PM
This is the 1st time I am trying to manipulate the server and create an .htaccess file. I am trying to do a mod_rewrite and I cant figure out about to go about doing it, can someone help me?

Thanks in advance!

Mr. E. Cryptic
08-25-2008, 06:01 PM
It depends what you actually want to use the ModRewrite for. This (http://corz.org/serv/tricks/htaccess2.php) is a pretty complete tutorial that will cover most uses.

Pream
08-25-2008, 06:09 PM
I am using the mod rewrite to make the URL look cleaner

Pream
08-26-2008, 11:13 AM
LoadModule rewrite_module modules/mod_rewrite.so
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

That is what is in my file and it is not working, can someone tell me what i am doing wrong?

Mr. E. Cryptic
08-26-2008, 01:29 PM
1. what's your current link/url structure?

2. What do you want to change it to?

Pream
08-28-2008, 03:27 PM
the site is www.wimax.net and if you click on something such as products, you get something like

http://www.wimax.net/index.php?page=product
I want something like
http://www.wimax.net/index.php/product

Pream
08-28-2008, 03:45 PM
It might be helpful to know that I am using PHP's GET

Mr. E. Cryptic
08-29-2008, 04:54 AM
Options +FollowSymLinks
RewriteEngine On

^([a-zA-Z]+)/([a-zA-Z]+)/$ $1.php?page=$2 [L]

would let you use something like

site.com/index/page/

and turn it in to

site.com/index.php?page=page

Pream
08-29-2008, 08:52 PM
I am getting ERROR 500
Internal Server Error

Mr. E. Cryptic
08-30-2008, 04:16 PM
haha, sorry, forgot the important part.

Options +FollowSymLinks
RewriteEngine On

RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+)/$ $1.php?page=$2 [L]

The important part being RewriteRule :D

Sorry.:o

Pream
09-04-2008, 12:48 PM
it's ok well that fixed the internal server error issue!!!

But it's still not workin, I'm about ready to give up on mod rewrites