I am developing a database driven site and if i use mod_rewrite to change the dynamic urls to static is that as effective as having static urls all along?

Dani AI

Generated

Good thread — and thanks and for the initial points. A readable URL layer can help, but the visible URL should be treated as the canonical, public address for both users and search engines. That means more than cosmetic rewrites: plan canonicalization, permanent redirects, and consistent internal linking so you do not end up with duplicate or competing addresses for the same content.

Practical checklist you can apply now: ensure each resource has a single canonical URL (use rel="canonical" or 301 redirects), redirect old query-string variants to the new slug with a 301 so link equity is preserved, remove session IDs from URLs, generate unique human-readable slugs (hyphens and lowercase), and keep your sitemap and internal links pointing to the rewritten addresses. Monitor indexing in Google Search Console and watch server logs for crawl errors. Do not rely on rewritten URLs alone to fix on-page issues — content quality and site structure still matter, as implied.

If you use Joomla, enable SEF and URL rewriting in Global Configuration, and confirm the server has mod_rewrite enabled (rename htaccess.txt to .htaccess if required). Test redirects with curl -I and verify 301 responses before going live. For mod_rewrite syntax and advanced patterns, see the official Apache documentation: Apache mod_rewrite documentation.

Recommended Answers

All 4 Replies

I am developing a database driven site and if i use mod_rewrite to change the dynamic urls to static is that as effective as having static urls all along?

Yes. Infact it is better that way. Since search engines rank you website based on content, having static url helps with your content rating and rank on the search based on keywords being used.

The only advantage of using mod_rewrite to change your URLs for SEO is that you can remove unnecessary clutter and make sure your keywords are prominent in your URL. This will have a small direct effect on your rankings. Indirectly this will also help you with SEO as it will encourage other webmasters to link to your site with those keywords in their link as many use the URL to help formulate their anchor text.

Otherwise there is no harm in using dynamic URLs or having query string in your URL from an SEO point of view.

There is a tool in joomla that does this automatically, or should i get some sort of mod_rewrite php script? Has anyone used this feature in joomla? Thanks again.

Hello

i too have the same problem with my site please reply what is solutions for this


regards
seomaster

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.