View Single Post
  #4  
Old 14th Jan 05, 02:50 AM
SlickVic78's Avatar
SlickVic78 SlickVic78 is offline
Senior Member
 
Join Date: Sep 2001
Location: New York, USA
Posts: 515
SlickVic78 is an unknown quantity at this point
Hello war59312,

Sure thing. All it requires is a few lines within your .htaccess file and you are good to go.

Suppose you have a URL that looks like this:
To manipulate your URLs, simply add this code to your .htaccess file:
Code:
RewriteEngine On RewriteRule ^catalog-?([^-]+)-([^-]+)(.*)\.html$ /catalog$3.html?$1=$2 [QSA,N] RewriteRule ^catalog-?\.html$ /catalog.php [QSA,L]
The first rule loops until no name-value pair is available and the second rule calls the catalog.php if no name-value pair is available.

So you would use this URL instead:
[EDIT] Removed ".php" after catalog. [/EDIT]

You would then have to be sure that all your URLs on your page reflect the new URL format, and you should then be good to go.

If you would prefer the Folder Structure like:
Let me know and I'll be more than happy to share my findings.

-SlickVic78
__________________
  • Pentium 4 3.20GHz Processor
  • 1 Gig DDR 400MHz RAM
  • 100 Gig 7200 RPM Western Digital HDD
  • 80 Gig 7200 RPM Western Digital HDD
  • Lite-On LTR-52327S CD-RW Burner
  • Lite-On SOHW-1633S DVD Burner
  • ATI Radeon 9700 Pro
  • Sound Blaster Audigy
  • Microsoft Windows XP Pro SP-2

Last edited by SlickVic78 : 14th Jan 05 at 04:03 AM.
Reply With Quote