Skip to content
WJunction - Webmaster Forum

Need advice with htaccess

Status
Not open for further replies.
Hi,
I created urls in htaccess,
What's prefer, with .html or without?
domain.com/mp3,id.html or domain.com/mp3,id ?

Regards.
 

6 comments

How are you planning on keeping both URLS?

If you are running mod_rewrite (changing the url to ignore the extension) then google will index that.
 
If I do something like that :
RewriteRule ^mp3,(.*).html?$ aaa.php?id=$1 [L]
RewriteRule ^mp3,(.*)?$ aa.php?id=$1 [L]

Then you can use with .html and without.

Regards.
 
^^ But google will only index the content which has been linked on other pages.
I pref one with .html for threads/posts and without any extension for categories/forums
 
Status
Not open for further replies.

About the author

C
Senior Member · Joined
1,005
Messages
11
Reactions
38
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom