![]() |
|
|||||||
| Register | FAQ | Members List | Downloads | Calendar | Today's Posts | Search | Webmaster Resources | Webmaster Blogs |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||||
|
Redirect Script
PHP Code:
-Replace "YourURL" with URL where u want to redirect your page to.. I know its small thing but i just want to share it.. |
|
|||||
|
Thanks for that. This could be usefull redirection for affiliate links.
__________________
Advanced CMS software with directory, blog, classifieds and portal features |
|
|||||
|
thank you for sharing this, but there is some problem with this script. As i can judge it is written in javascript which can not be followed by search engine robots, hence it may be cause to get your penalized due to the cloaking. I rather suggest php or htaccess permanent redirect instead of javascipt.
__________________
█Time may come when you will need a shopping cart █digitális mérleg keresőoptimalizálás |
|
|||||
|
Quote:
But Ask me about diamonds thats my job ![]() |
|
|||||
|
Istambul, there is absolutly no problem i just wanted to draw your attention to the possible disadvantage of the javascript redirection.
Well i had no touch with diamonds so far ![]()
__________________
█Time may come when you will need a shopping cart █digitális mérleg keresőoptimalizálás |
|
|||||
|
Zoltan (that's your first name, right?), if you cold write samples of php and mod_rewrite redirects so we can have all 3 variations in the same thread?
Thanks a lot!
__________________
Advanced CMS software with directory, blog, classifieds and portal features |
|
|||||
|
Of course SkinnerW. If you want to redirect page to the new location you may use php in order to let search engines know about the change. Here is a sample code:
PHP Code:
Quote:
Quote:
__________________
█Time may come when you will need a shopping cart █digitális mérleg keresőoptimalizálás |
|
|||||
|
To remove the www from your domain (to match your setting in Google Webmaster Tools):
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com
RewriteRule (.*) http://yourdomain.com/$1 [R=301,L]
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yourdomain\.(net|info|org|name)
RewriteRule (.*) http://yourdomain.com/$1 [R=301,L]
|
|
|||||
|
MArtin, i have never seen this code before, thanks for sharing. I guess it will work only if you own those TLDs.
__________________
█Time may come when you will need a shopping cart █digitális mérleg keresőoptimalizálás |
|
|||||
|
Yeah, you can switch those out with the ones you have, or just add a TLD with the pipe
separator | between them. |
![]() |
| Bookmarks |
| Webmaster Resources |
|
• UK WW SEO Tools • Find UK Hosts |
| The Forum Rules |
|
• Forum Rules - MUST READ |
| Site Of the Month |
![]() Nominate site of the month |
|
|