Forum Moderators: phranque
Im not really sure If I am even asking this correctly. What I am after Is I want goolge to see the Directory url but I want in php code to look up the data for article 1 from a table and display it using a standard php file I wrote called atricles.php. So I think I may need to list the URL as the second example but treat it like the first but I am not sure?
As stated in our charter [webmasterworld.com], we're not set up to provide a code-writing service here, but we'll be glad to help you get your own code working. The following links to resources and recent threads (and the links cited therein) may be helpful:
Introduction to mod_rewrite [webmasterworld.com]
[webmasterworld.com...]
Jim
I need to show this URL:
www.****.com/CCS/Articles/Articles.php?article=1
As:
www.****.com/CCS/Articles/1/1.php
Give this a try. In your .htaccess file,
RewriteEngine on
RewriteRule ^ccs/articles/1/([0-9]+)$ /CCS/Articles/Articles.php?article=$1 [L] Now try calling it by
www.example.com/ccs/articles/1 You can make return the upper case and .php if your want.