CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   url construction (http://www.codingforums.com/showthread.php?t=245980)

montesano 12-10-2011 06:21 AM

url construction
 
Hi, I have urls that look like 'mysite.com/48YSWD96', however I need to be able to write them as urls that look like 'mysite.com/?d=48YSWD96' and still have them go to the same place. My .htaccess code looks like this:
Code:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
RewriteBase /

I hope that was clear. What do I need to add? any help is much appreciated, thanks.


All times are GMT +1. The time now is 07:53 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.