954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

.htaccess

ok so i want to create a URL like this: www.blah.com/section.php?=news
except i only see how to do it the other way using mod_rewrite. So is there a way to do this using mod_rewrite?

kishou
Junior Poster in Training
52 posts since Dec 2007
Reputation Points: 10
Solved Threads: 1
 

i don't really understand what you are trying to do.
maybe you mean that:
you have an index.php file with an argument like "?act=news". Then you can include the news.php from the folder include or code or whatever.
The access to that folder can be restricted with htaccess. So nobody can get the files in there but has to use you index file.

Hope that helps. If not, try to explain it with an example.

sDJh
Posting Whiz in Training
259 posts since Aug 2005
Reputation Points: 56
Solved Threads: 29
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You