Home > Ajax, Apache, HTML, IE, JavaScript > Apache rewrite rule robots sitemap

Apache rewrite rule robots sitemap

I want to  stop using framework, and do some HANDjob:

1. .htaccess

<IfModule mod_rewrite.c>
 RewriteEngine on
 # Google will hit those
 RewriteRule ^wenduine-haan-brugge-oostende-blankenberge/?$ / [H]
 RewriteRule ^haan-blankenberge-oostende-brugge/?$ / [H]
 RewriteRule ^de-haan/?$ / [H]

... 40,000 alias rules
</IfModule>

2. robots.txt

User-agent: *
Disallow: /
Sitemap: http://www.example.be/sitemap.txt

3. sitemap.txt ( comment: if i get good job, and get good paid, i would have wrote a java/c++ data entry software )

http://www.example.be/wenduine-haan-brugge-oostende-blankenberge
http://www.example.be/haan-blankenberge-oostende-brugge
http://www.example.be/de-haan
....

Done.

Advertisements
Categories: Ajax, Apache, HTML, IE, JavaScript
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: