Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 2 of 2
Search took 0.03 seconds.
Search: Posts Made By: mr_sarge
Forum: Apache configuration 03-30-2012, 12:41 PM
Replies: 1
Views: 643
Posted By mr_sarge
I made it work this way: RewriteRule...

I made it work this way:
RewriteRule ^([a-z]+)/?$ site.php?pg=$1 [L]

But it don't wan't to work if I add the php extension like before:
RewriteRule ^([a-z]+)\.php$ site.php?pg=$1 [L]
Forum: Apache configuration 03-28-2012, 01:52 PM
Replies: 1
Views: 643
Posted By mr_sarge
ModRewrite help

Hi,

I'm trying to make site.com/home.php rewrited to site.com/site.php?pg=home so all my URL will be:

site.com/home.php
site.com/about.php
site.com/contact.php
etc..

instead of:
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT +1. The time now is 04:51 AM.