views:

49

answers:

3

Hi,

I have developed a site, which has some static pages. Like explore, home, feedback.

The link for these goes as follows
website.com/views/explore.php
website.com/index.php
website.com/views/feedback.php

I want to write a different SEO URL for each of the URL mentioned above.
Is it possible ?
i.e. for example
website.com/views/explore.php should be convereted/visible as website.com/explore
website.com/views/feedback.php should be convereted/visible as website.com/give/feedback

and so on

+2  A: 

You can use these mod_rewrite rules to rewrite requests to /explore and /give/feedback internally to /views/explore.php and /views/feedback.php:

RewriteEngine on
RewriteRule ^explore$ views/explore.php [L]
RewriteRule ^give/feedback$ views/feedback.php [L]
Gumbo
Thanks for your help Gumbo, will these rules work on localhost also ? Or shall I test it after editing and then uploading the file on server ?
Gaurav Sharma
@Gaurav Sharma: They should work on your localhost too.
Gumbo
Thanks again for your timely help. :) working flawlessly on localhost too.
Gaurav Sharma
A: 

with .htaccess file you can change any url on your site. i love this file.

hd
A: 

if you are hosting website in ISS the you can try IIS SEO toolkit. & set dynamic URL itself in IIS see the indepth explaination by Scott about Imporve SEO by SEO Toolkit

Pragnesh Patel