Jump to content

[SOLVED] Mod Rewrite help


DeanWhitehouse

Recommended Posts

as a novice as well, here is what I used

 

Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteRule ^([A-Za-z0-9-]+)/?$ user/profile.php?user=$1 [L]

 

what is say is this: it allows the string to contain numbers and letters, it uses the file under the user directory called profile.php

 

then it takes the ?user=username, so it all comes out to site.com/username

Link to comment
Share on other sites

This is wierd

RewriteRule  Home /Property-Agent/index.php [NC,L]
RewriteRule  News /Property-Agent/news.php [NC,L]
RewriteRule  Search /Property-Agent/search.php [NC,L]

 

Search and News causes 500 Internal Server Error

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

Link to comment
Share on other sites

C:\wamp\www\Property-Agent\.htacccess

And all the site files are located there.

 

From the log

[Thu Oct 16 19:54:45 2008] [error] [client 127.0.0.1] script 'C:/wamp/www/news.php' not found or unable to stat

 

Thats the wrong path but the path i specified is

RewriteRule  ^News /Property-Agent/news.php [NC,L]

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.