/    Sign up×
Community /Pin to ProfileBookmark

Question on 301 Redirects

As we all know you can have a path:

[url]http://www.domain.com/subdirectory/[/url]

And you can have the path:

[url]http://www.domain.com/subdirectory/index.htm[/url]

Google usually links to the one without the filename.
Sometimes it links to the one with the filename.

Does this mean a properly created 301 redirect would need to have both covered?

For example:

Redirect 301 /subdirectory/ [url]http://www.domain.com/newsub/[/url]
Redirect 301 /subdirectory/index.htm [url]http://www.domain.com/newsub/index.php[/url]

to post a comment
SEO

1 Comments(s)

Copy linkTweet thisAlerts:
@apeaceJan 27.2008 — No. Just create one for /index.html. Anybody going to /subdir/ is just going to end up at /subdir/index.html anyways. I would think that just creating one for the index file would be fine.
×

Success!

Help @Garci spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...