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.

#1 2011-05-16 14:45:02

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

redirect

how i can with .htaccess redirect ALL pages to index.html??

Offline

#2 2011-05-16 15:13:24

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

Re: redirect

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

This will redirect EVERYTHING to index.html


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

Offline

#3 2011-05-16 15:52:52

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

Re: redirect

i get error hmm

Offline

#4 2011-05-16 19:03:05

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

Re: redirect

is show like my site is offline..... hmm what is rong in this code?

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

Offline

#5 2011-05-16 19:06:49

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

Re: redirect

thiva7 wrote:

is show like my site is offline..... hmm what is rong in this code?

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

You need to add your domain URL in the second line:


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

Last edited by Pikeypete (2011-05-16 19:09:11)

Offline

#6 2011-05-16 19:10:33

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

Re: redirect

smile i do that man tongue . but i want to ALL pages to redirect to index.html .and this code is show my site like is offline

Offline

#7 2011-05-16 19:13:30

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

Re: redirect

Your index is a PHP page with a PHP extension. Why are you wanting to direct to an html extension?

Offline

#8 2011-05-16 19:16:26

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

Re: redirect

let me explene to you what i want to do.....

i have 2 sites one is  xporn4u.com and one more wich i will close it.so in other site i have add index.html wich i gave link to new site ( xporn4u ) and message wich say site closed etc.... ok?? so how i can redirect ALL pages to index.html?

Last edited by thiva7 (2011-05-16 19:16:46)

Offline

#9 2011-05-16 19:24:49

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

Re: redirect

If all you're wanting to do is redirect traffic from your old site that you're closing to your new site xporn4u simply go into your server control panel and set up a simple 302 redirect, easier and less hassle. It WON'T be instant, it usually takes about an hour after you set the redirect to your new site so be patient before you see the results.

Offline

#10 2011-05-16 19:27:29

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

Re: redirect

i dont want to redirect to xporn4u yet.....i just want to all pages go index.html

Offline

#11 2011-05-16 19:29:24

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

Re: redirect

Then just do what Adrian told you, EVERYTHING will be directed to the index.html.
Adding those commands to the htaccess is a forced redirect.

Offline

#12 2011-05-16 19:30:38

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

Re: redirect

i told u before.....is shows my old site like is offline with this code

Offline

#13 2011-05-16 19:31:27

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

Re: redirect

Give me the URL to your other site.

Last edited by Pikeypete (2011-05-16 19:31:52)

Offline

#14 2011-05-16 19:33:51

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

Re: redirect

( adrian is not spam this link , this site will be close ) tongue

here my other site link

http://www.celebsxvideo.com/index.html

Offline

#15 2011-05-16 19:36:42

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

Re: redirect

You've got an error, I'm guessing in your htaccess if you didn't change anything in your server control panel.
You're not resolving to the .html.

I can fix it with access or you can just wait for Adrian, either way it's a simple fix.

Offline

#16 2011-05-16 19:39:21

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

Re: redirect

i send u mail

Offline

#17 2011-05-16 19:48:51

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: redirect

thiva7 wrote:

i send u mail

LOL you are sending emails to me


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#18 2011-05-16 19:50:29

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

Re: redirect

Fixed.
All that a visitor will see now is your index.html which notifies them of your new site with the given link to your new site. There is no need to include every page from your old site as there aren't any other viewable or accessible pages/links to the public now.
All a visitor sees when he/she goes to any site is the index first anyway.

Last edited by Pikeypete (2011-05-16 19:51:30)

Offline

#19 2011-05-16 20:24:40

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

Re: redirect

nothing fixed sad

eg when some one visit this site from google with link

http://www.celebsxvideo.com/page.php?page=35 is not redirect to index.html sad .
i have not delete anything from my old site i just rename index.php and play.php wich have the most usage.

so i want EVERY page to redirect index.html i have told that many many times in this post.

Offline

#20 2011-05-16 20:27:44

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

Re: redirect

Ohhh  I see what you're saying.
You can just set up a 301 direct then.
Go here:

https://www.google.com/webmasters/tools/change-address

and make the changes with Google so that every page goes to your new site.

Offline

#21 2011-05-16 20:29:55

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

Re: redirect

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.


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

Offline

#22 2011-05-16 20:31:04

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

Re: redirect

AGAIN MAN.....i dont want to redirect celebsxvideo to xporn4u. with no way. i want to still crawl google my old site but when some one visit i want to redirect INDEX.HTML

Offline

#23 2011-05-16 20:32:27

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

Re: redirect

Ahh...wait...you want google to still be able to crawl your old site, however when a non-robot visits your site, you want to redirect to index.html?


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

Offline

#24 2011-05-16 20:34:35

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

Re: redirect

yes....yes i want to only redirect all pages to index.html

Offline

#25 2011-05-16 20:37:13

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

Re: redirect

smile Yes...yes to what? You want only human visitors to be redirected? And robots (including google-bot) to be able to index/crawl your site?


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

Offline

Board footer

Powered by FluxBB