Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#26 2011-05-16 20:38:48

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: redirect

This might be a little complicated, considering that you are using another script. What script are you using?

With Adult Script Pro, it would be something like:

if (!VBrowser::get('is_robot')) {
    VF::redirect(BASE_URL.'/index.php');
}

Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#27 2011-05-16 20:38:52

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: redirect

yes i want for now to be able crawl my old site.

Offline

#28 2011-05-17 11:21:52

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: redirect

symtab wrote:

Hmm...try this:

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index.html
RewriteRule ^(.*)$ /index.html [L,R=301]

There might be rules on your server though, that maybe affect the index.html redirect. Let me know if that works.


its ok this work for me for now. thank youuuuuu!

Offline

#29 2011-05-17 13:29:09

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: redirect

That will also redirect robots sad


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#30 2011-05-17 13:49:32

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: redirect

realy?? so what code i should use?

Offline

#31 2011-05-17 15:14:02

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: redirect

I dont think you can do it from .htaccess and even if you could, you need like 50 lines for all search engines.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#32 2011-05-17 17:46:27

Pikeypete
Member
From: USA
Registered: 2011-04-21
Posts: 115
Website

Re: redirect

I looked into it further this morning, it would be one severe headache.
Just set up a 301. Not much point in being so concerned about Google bots crawling anyway, the site's closed.

Offline

#33 2011-09-26 18:53:05

xsporntv
Member
Registered: 2011-04-20
Posts: 139
Website

Re: redirect

symtab wrote:
RewriteEngine on
RewriteRule (.*) http://www.yourdomain.com/index.html [R=301,L] 

This will redirect EVERYTHING to index.html


I plan on moving my site to a new domain.  From smuttv.co  ->  xsporntv.com.   Can I simply copy and paste the code above into the bottom of the .htaccess file?

Question?  This is a 301...so if a person clicks on smuttv.co/big-tits-alexis texas/ will it take them to xsporntv.com/big-tits-alexas texas or simply xsporntv.com?

Last edited by xsporntv (2011-09-26 19:00:21)

Offline

Board footer

Powered by FluxBB