Welcome to Dream.In.Code
Become a PHP Expert!

Join 150,138 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,273 people online right now. Registration is fast and FREE... Join Now!




PHP & Apache help

 
Closed TopicStart new topic

PHP & Apache help, Declares without "?" rather than 'page/?some=this"

huzi8t9
22 Aug, 2008 - 04:38 PM
Post #1

New D.I.C Head
*

Joined: 11 Jul, 2007
Posts: 23


My Contributions
I'm currently making a site, took me a good long while to get Apache up and running.. Correctly! But now, if I visit a page; the link being
HTML
<a href='Action/?Action=Login'>Login</a> :: <a href='Action/?Action=Register'>Register</a>


That looks all simple, can I make it so I can have links like so
HTML
<a href='Action/Login'>Login</a> :: <a href='Action/Register'>Register</a>


I'm sure it's possible, any help?

As ever, any help is greatly appreciated!

Thanks in advance, Huzi8t9
User is offlineProfile CardPM
+Quote Post

Moonbat
RE: PHP & Apache Help
22 Aug, 2008 - 04:55 PM
Post #2

D.I.C Regular
Group Icon

Joined: 30 Jun, 2008
Posts: 399



Thanked: 23 times
Dream Kudos: 600
My Contributions
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

This is what you are looking for, mod_rewrite.
User is offlineProfile CardPM
+Quote Post

JBrace1990
RE: PHP & Apache Help
22 Aug, 2008 - 06:47 PM
Post #3

D.I.C Regular
Group Icon

Joined: 9 Mar, 2008
Posts: 479



Thanked: 24 times
Dream Kudos: 350
My Contributions
here's the snippet by PsychoCoder
User is offlineProfile CardPM
+Quote Post

huzi8t9
RE: PHP & Apache Help
24 Aug, 2008 - 09:19 AM
Post #4

New D.I.C Head
*

Joined: 11 Jul, 2007
Posts: 23


My Contributions
I've tried both of these replies.

For some reason my Apache won't look through my .htaccess.

I've tried a simple blocking code to see if my theory is correct.

CODE

<FilesMatch "^\.php">
    Order allow,deny
    Deny from all
</FilesMatch>


I've also tried the same method with blocking every IP that eneters my site just to test if my .htaccess is actually being processed aswell as the website. Nothing seems to happen, it's as if my .htaccess is not even there.

Any answers or reasons? Please let me know, I'm new to Apache, as you may be able to guess.

Thanks for the help guys, appreciated.

Mark.
User is offlineProfile CardPM
+Quote Post

Closed TopicStart new topic
Time is now: 1/9/09 02:10AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month