I'm a new comer to URL spinning and saw in lots of sites the result of URL Spinning. I'm brand-new for this area. Even, i'm finding difficult to learn this.
The assistance is, I wish to rewrite
http://www.example.com/demos/any-page.html omitting the
I really hope this spinning can be done and when help me in supplying the .htaccess code with this rewrite. I'm utilizing a linux server.
/, and for the reason that file:
RewriteEngine On RewriteRule ^demos/(.*)\.html resources/pages/demos/$1.html
mod_rewrite is not the simplest factor to understand in the beginning. I think you will discover the following code sufficient:
Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule ^demos/(.*)\.(htm|html)$ resources/pages/$1.$2 [L]
This must be put into the document cause of your website. It'll handle both .html and .htm pages and match only individuals pages. To complement any page following the demos/ url (With any extension) make use of the following:
Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule ^demos/(.*)$ resources/pages/$1 [L]