Mobile app version of vmapp.org
Login or Join
Chiappetta492

: Yes, your SEO advisors are correct. You can actually use the Apache Rewrite module to translate that SEO-friendly URL into the alternative you would prefer. By changing the desired URL structure

@Chiappetta492

Yes, your SEO advisors are correct. You can actually use the Apache Rewrite module to translate that SEO-friendly URL into the alternative you would prefer. By changing the desired URL structure to example.com/categories/category/subcategory/, you can do this in your .htaccess file:

RewriteRule ^categories/([^/]+)/([^/]+) showcat.php?cat=-

Basically when Apache receives the request with the SEO-friendly URL, it matches that line and calls the PHP file using the structure you prefer, automagically inserting the category names.

Almost every PHP CMS with SEO-friendly URLs uses mod_rewrite in some capacity.

Here's a helpful guide to get you started: www.addedbytes.com/for-beginners/url-rewriting-for-beginners/

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Chiappetta492

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme