View Full Version : SEO Settings
netmed
07-03-2006, 11:04 AM
Head on chest I have to admit that I have only just found out about the benefits of SEO. The problem is after running OSDate with the setting disabled I find now if I try an enable it I cannot view profiles. Am I right in thinking 'that was your choice at the begining so now you have to lump it' or is there a way of importing the data?
John
Astroman
07-03-2006, 11:06 AM
You have to put the .htaccess file in your root folder, then alter it a bit to get all the URLs working.
netmed
07-03-2006, 11:32 AM
alter it a bit?
sorry to be a pain but does anyone have a step by step guide they could pass on?
Astroman
07-03-2006, 12:14 PM
You just need to add a bit on because some of the pages haven't been accounted for, anyway this is my rewrite rules and they work:
# change to yoursite.com
ErrorDocument 404 http://www.dream-dating.org
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
Just copy and paste it into .htaccess and upload to root folder.
netmed
07-03-2006, 12:45 PM
I havent got a .htaccess file?
Astroman
07-03-2006, 12:51 PM
It's in a folder called SEF_URLs, perhaps called htaccess.txt
It doesn't matter though, it's just a simple text file.
Either open the htaccess.txt file above and rename it .htaccess and paste the code I posted over the top... or open notepad and paste the code from above into the blank document and save it as htaccess. Then you will have a htaccess.txt file that you must rename to .htaccess (removing the .txt from the end) and upload it to your root folder.
netmed
07-03-2006, 12:55 PM
soz I found it, do upload it to the OSdate pubic_html or the one up from that?
Astroman
07-03-2006, 01:11 PM
public_html, unless you have installed osDate inside another folder. If your dating site's address is simply www.datinggsitte.com (for example) then it is public_html.
Edit: I just remembered, to make sure pages rewrite properly while you are in your admin area you will need to upload a copy into your admin folder too. :)
P.S. As netmed has cleverly titled this thread after the actual content (a rare thing), it might be useful as a sticky somewhere?
netmed
07-03-2006, 01:13 PM
you are a diamond, Astromans thanks for sparing the time
Easee1
07-10-2006, 05:10 AM
Is there a workaround for servers that do not allow .htaccess files such as Yahoo? If so what is it and if not, what does a person do for the same effect?
nightguest
07-10-2006, 05:27 AM
netmed:
this is the step by step guide u need:
http://www.tufat.com/docs/osdate/sefurls.html
netmed
07-10-2006, 05:32 AM
Thanks nightquest but I have already sorted it.
John
Astroman
07-10-2006, 06:07 AM
Also, as stated near the beginning of this thread, the rewrite rules that come with osDate are not complete, so that tutorial will leave a few people confused as to why some pages work and some do not.
Astroman
07-10-2006, 06:09 AM
Is there a workaround for servers that do not allow .htaccess files such as Yahoo? If so what is it and if not, what does a person do for the same effect?I'm afraid there is not, without mod_rewrite enabled on your server you cannot rewrite your URLs.
nightguest
07-10-2006, 06:34 AM
YAHOO sucks!
Astroman
07-26-2006, 09:58 AM
I just made a little addition at the top of the .htaccess:
# change to yoursite.com
ErrorDocument 404 http://www.dream-dating.org
This stops people getting a 404 error page, if you remove a page that's indexed in search engines, and redirects them (and search engines) to your front page.
queerfm
08-12-2006, 08:15 AM
hi guys i downloaded this mod and it is not working anyone know of away that i can get it so that the usersname is the link e.g. http://yourdomainname.com/username
Astroman
08-12-2006, 10:34 AM
What do you mean 'it is not working', is there an error message?
I think this is a probelm with your template rather than your seo settings. Try switching templates and see what happens.
nope tried all other templtaes,still nothing showing
Astroman
09-26-2006, 07:03 AM
Perhaps your language file is incorrect/old then. Try reloading it or making sure you have the version that matches your osDate version. Anyway this doesn't really belong in here, you should post this in the bugs section for Vijay to have a look at if you're still stuck. :)
the_one
09-26-2006, 06:23 PM
I'm having the same problem with Profiles as mentioned above. Here's the link to my site.
http://www.matchmama.com/dating/public_html/ (http://www.matchmama.com/dating/public_html)
It is a test site...freshly posted. My question is, where do I put my .htaccess file? Do I put it in "/", OR "/dating/" OR "/dating/public_html/" ?
At this point, I am open to ideas...thanks.
MattSchneider
09-26-2006, 06:44 PM
I'm having the same problem with Profiles as mentioned above. Here's the link to my site.
http://www.matchmama.com/dating/public_html/ (http://www.matchmama.com/dating/public_html)
It is a test site...freshly posted. My question is, where do I put my .htaccess file? Do I put it in "/", OR "/dating/" OR "/dating/public_html/" ?
At this point, I am open to ideas...thanks.
any of those will work
- Matt
http://locatemylove.com (Please only signup if you plan to upload a pic)
the_one
09-27-2006, 02:57 PM
True....any of these should work, but they don't. Now, granted I can view the page if the ".htaccess" file is in the "/" or "/dating/" folder. But, when I put the file in the "/public_html/" directory I cannot even view the page. What am I doing wrong? If I need to, I will post my ".htaccess" file if it will help.
Astroman
09-27-2006, 03:39 PM
You do realize of course that the folder, public_html, is not supposed to be uploaded to your server, only the contents of public_html?
It mightn't stop the rewrite working, but it sure will confuse things a bit.
the_one
09-28-2006, 05:28 AM
I did not realize that, so thanks for the tip. My site works, all but the profiles. There is a flash directory in with the "public_html" directory. I assumed both needed to be on the server. So, you're telling me if I copy the entire contents of "public_html" to my root directory, then my problems will dissappear? I sure hope you're right.
Thanks again!
Astroman
09-28-2006, 06:44 AM
You don't need to upload the flash source folder, that's just there if you want to modify the flash files on your computer.
yiannis
09-28-2006, 11:06 AM
Is there a need to modify the .htaccess file if the server is running windows os?
Thanks
Astroman
09-28-2006, 12:27 PM
I'm not sure because I never use Windows servers, but I think htaccess is a little trickier with Windows. Try googling '.htaccess with Windows' and see what comes up?
Or ask Vijaynair?
yiannis
09-29-2006, 01:00 PM
Had a quick look around, there are a few plug ins (like http://www.smalig.com/url_rewrite/ ) but need to be configured within IIS therefore is a job for the webmaster.
I ll have to ask my provider if they support anything like that.
It also looks like that IIS7 will have this function built in.
prowebhoster
10-20-2006, 09:31 AM
No there isnt. You need a server that 1) Has mod rewrite turned on
2) Allows htaccess overrides
Yahoo and such never will allow that
if need a host that does see http://prowebhoster.com
toysgalore
10-22-2006, 10:25 AM
--------------------------------------------------------------------------------
I have installed OSdate to http://www.market-toys.co.uk/datesit...html/index.php. but the links at the bottom
Privacy
Terms_of_use
services
faq
article
Instead of being php files and activem, they are showing as html files and inactive.
Astroman
10-22-2006, 12:24 PM
Have you read this thread, the one you have posted in?
toysgalore
10-22-2006, 02:14 PM
Hi
I have read this thread and copied the file as given and this made no difference.
Astroman
10-22-2006, 03:27 PM
Does switching off SEF URLs make a difference?
Edit: also you are not supposed to upload the folder called public_html, only its contents.
toysgalore
10-23-2006, 06:39 AM
How do i switch off SEF URL's to see if this makes a difference
Astroman
10-23-2006, 07:34 AM
In admin click 'SEO Settings' then choose 'no' where it says ' Enable URL Rewriting using mod_rewrite:'
toysgalore
10-23-2006, 11:44 AM
Thanks Astroman, this has worked
Astroman
10-23-2006, 01:09 PM
Okay, so that means you either didn't set up your .htaccess file right, it could be that your uploading the public_html file didn't help, or your server does not have mod rewrite enabled.
Anyway if you do not want short URLs you can just leave it as it is and everything will be fine.
master-net
11-06-2006, 10:09 AM
In admin click 'SEO Settings' then choose 'no' where it says ' Enable URL Rewriting using mod_rewrite:'
dear sir
I install mod_rewrite step by step everything was right..
but it didnt work , and now I dont see check box ( yes or no )
and urls are still not shown html ..
Astroman
11-06-2006, 11:15 AM
Where are you looking, what do you see instead of Yes and No?
master-net
11-08-2006, 01:58 PM
Where are you looking, what do you see instead of Yes and No?
This is all what I see ...
Enable URL Rewriting using mod_rewrite:
I dont see yes or no..
its enable but doesnt work, I want to disable it ?
Astroman
11-08-2006, 02:20 PM
Have you tried changing your site template, to default blue for instance, to see if the options show up then?
master-net
11-09-2006, 01:24 PM
Have you tried changing your site template, to default blue for instance, to see if the options show up then?
Yes I did but still doesnt work ...
Astroman
11-09-2006, 02:35 PM
Oh, I'm not sure what to say then without seeing it for myself. I can't think why the options wouldn't be there in the default blue template as they are the originals, unless you changed them?
master-net
11-10-2006, 05:50 AM
Oh, I'm not sure what to say then without seeing it for myself. I can't think why the options wouldn't be there in the default blue template as they are the originals, unless you changed them?
Thanks for your reply
I did nothing to default template ... just enabled the mod rew_write and its gone :))
Astroman
11-10-2006, 11:58 AM
Okay, in that case you will have to use phpmyadmin to go into your MySQL database and alter osdate_glblsettings on the line enable_mod_rewrite.
master-net
11-11-2006, 03:40 PM
Okay, in that case you will have to use phpmyadmin to go into your MySQL database and alter osdate_glblsettings on the line enable_mod_rewrite.
Thanks I been looking that way also its enaled but still doesnt work ..
storys , articles , and pages has to be html , they are not..
Astroman
11-12-2006, 02:50 AM
Sorry you have lost me now, I thought you wanted SEF URLs to be disabled?
amaaw
11-12-2006, 04:20 AM
We can not know all pages. Can we write a rule for all pages?
master-net
11-12-2006, 09:58 AM
Sorry you have lost me now, I thought you wanted SEF URLs to be disabled?
Yess its thrue I wanted to disable it ... I disable it from the mysql phpmyadmin disable_mod_rewrite but on the site global settings is still enabled ...
and its not working ...
I think I need a new install to make it working ...
nop waiting for the 2.0
Christien
12-15-2006, 11:10 PM
When i enable SEO the profiles don't show up (HTTP-Error 404). These are my setting in .htaccess
<Files config.php>
Deny from all
</Files>
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /cds/
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^gebruiksvoorwaarden.html$ index.php?page=gebruiksvoorwaarden
RewriteRule ^chat_regels.html$ index.php?page=chat_regels
RewriteRule ^diensten.html$ index.php?page=diensten
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^artikelen.html$ index.php?page=articles
RewriteRule ^artikel([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
I even try to remove the RewriteRule ^([^/]+).htm$ showprofile.php?id=$1 but when i click on show profile the error comes up and profile cannot be viewed. The profiles can only be viewed when i complete disable the SEO thing.
Astroman
12-16-2006, 03:17 AM
Do the other pages work?
Christien
12-16-2006, 05:53 PM
Thanks, for your reply.
Yes, the other pages do but i solved the problem. I followed the steps in the next thread and now it's working..
[MOD] SEO Nickpage Friendly for OSdate and phpBB Profiles
http://forum.tufat.com/showthread.php?t=26228&highlight=Nickpage
maxtor2003
01-28-2007, 07:09 AM
ok this thread has got my attention!!
can someone explain this seo stuff to me?
i dont understand what it does and whether i want it enabled or not?
thank you
Astroman
01-28-2007, 07:22 AM
The main idea is to get more of your pages indexed in search engines so there's more chance of your site appearing in a search, so you get more visitors.
maxtor2003
01-28-2007, 07:24 AM
Thanks astroman
So should i just follow the steps on the first page to attemp to try this?
i only registered my domain about a week ago and its still not coming up with google searches? Does this seo affect that to?
Astroman
01-28-2007, 07:45 AM
It can take ages to get pages to come up in google searches, especially if it's a new domain. Having a few links pointing to your site will help, not just with google searches but actually getting human visitors if you can gets links from decent sources that are related to your site's genre.
You've done a good thing by having a link back to your homepage, most osDate users haven't even bothered doing that, but I would make it link to your address without the index.php on the end.
If I was you I would try and get the seo URLs working and write some articles every week about your site's topic. Don't copy it from somewhere else but write it yourself so it's unique, this will get lots of visitors eventually but you have to keep at it if you want to make it big. Swingers is quite a niche market so you will get a few search results if you write articles about it, swingers' views, swingers' stories, how people get into swinging and so on... :)
maxtor2003
01-28-2007, 08:10 AM
but I would make it link to your address without the index.php on the end.
what do u mean by that?
thanks for being so helpfull today :)
Astroman
01-28-2007, 10:52 AM
I mean have your home button link to http://www.yourssite.com/ and not http://www.yourssite.com/index.php
maxtor2003
01-28-2007, 03:08 PM
Thanks astroman.......made that change :)
maxtor2003
01-28-2007, 03:19 PM
ok i made a text file and named it htaccess and put it in my root directory .... when i click on a profile to view i get a error >?????
here's the file i put in my root directory
# umatchswingers.com
ErrorDocument 404 http://www.umatchswingers.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
Does it look right ???
maxtor2003
01-29-2007, 11:36 AM
ok
i re-did this step by step
reading very carefully
and it
WORKS
Thank you
Astroman
01-29-2007, 12:00 PM
Brilliant. :)
BlackKnightV
02-20-2007, 10:47 PM
Hi, Am I doing it correctly as per below?
# lovingcupid.com
ErrorDocument 404 http://www.lovingcupid.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /cupid
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
msszroberts
02-20-2007, 11:20 PM
Hi BlackKnightV,
Your file looks perfect and your pages are working as expected.
Hi, Am I doing it correctly as per below?
# lovingcupid.com
ErrorDocument 404 http://www.lovingcupid.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /cupid
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
Lovegun41
03-17-2007, 12:36 PM
I believe I've done what I needed to do to get the SEO pages working but It's not finding them. I placed a file in the root and admin folder.
Here's what I uploaded.
# change to yoursite.com
ErrorDocument 404 http://www.bbw4romance.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
Astroman
03-17-2007, 02:13 PM
You also have to turn sef URLs on in SEO settings.
msdesmarais
03-17-2007, 08:01 PM
Astro, Astro, he's our [Astro]man... if he can't Seo no one can. :p
Lovegun41
03-17-2007, 08:31 PM
I turned it on and I still can't get it. I must of did something wrong. I'll retrace everything I did.
1. I opened htaccess.txt from SEF_URL folder.
2. I pasted this in my notepad....
# change to bbw4romance.com
ErrorDocument 404 http://www.bbw4romance.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
3. I saved a copy in my root folder and my Admin folder
4. I enabled URL Rewrite in SEO settings
5. I try clicking a profile and I get my custom 404 error page
Anyone see where I went wrong?
msdesmarais
03-17-2007, 08:52 PM
Some hosts are funny about .htaccess files. My servers, for example, won't allow the Options rule in the file - its not needed. If you added the code as Astroman posted, and it does not work, ask you host to view the .htaccess file for anything that might not work on their servers.
Astroman
03-18-2007, 03:00 AM
Also did you rename the file? htaccess.txt is no good, you have to rename it .htaccess
wvpaladin
04-02-2007, 10:47 PM
I thought I had this down, but I don't apparently...
osDate is in this directory www.wvpaladin.com/connect2souls - that's the way I did the redirect, and here's the code I put in for the SEO (which IS turned on in admin)
#/connect2souls/
ErrorDocument 404 http://www.wvpaladin.com/connect2souls/
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
where did I go wrong?
this is in a file called .htaccess in /admin and /SEF_URLS and /publichtml
Astroman
04-03-2007, 02:25 AM
You don't upload the sef_url folder, it doesn't do anything.
Try uploading .htaccess to the /connect2souls/ folder and/or change this line RewriteBase /
to this
RewriteBase /connect2souls/
or is it this
RewriteBase /connect2souls
Anyway it should work if you put the file in the /connect2souls/ folder I think.
wvpaladin
04-03-2007, 02:16 PM
The second option worked beautifully...
RewriteBase /connect2souls
Thanks again!
stuartindigo
04-16-2007, 05:48 AM
A quick query on this.
Is the userfriendly profile name
www.mydatingsite.com/username
or
www.mydatingsite.com/username.html
The former would be preferable for me but I thought I'd ask.
Stuart
Makis77
06-16-2007, 12:34 PM
hello!!!
i have same problems.
i uploaded and installed osDate on my root.
I changed the htaccess as mentioned and i also copied to
my admin directory.
I also changed through phpmyadmin the 'enable_mod_rewrite' to 'Y'
from 'N' at table 'osdate_glblsettings'
Still i get 500 error page when i try to get to admin
burton
07-01-2007, 05:27 PM
Can someone offer some advice please. My host has informed me that mod-rewrite is fine on my server, therefore I can use SEF.
However, when I switch on the SEF from the admin panel and place the .htaccess file into my directory, it does not work.
Should I be making the code more specific my own domain and is there anything missing?
Here is the code I have in the .htaccess file.
#www.mysitename.com (http://www.mysitename.com)
ErrorDocument 404 http://www.mysitename.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
Astroman
07-02-2007, 01:36 AM
Is the site in a subfolder?
burton
07-02-2007, 04:05 AM
No, site is not in a sub-directory.
I think it is only the profiles rewrite that is not working, because when clicking on a profile it is redirecting back to the hompage. Whereas, when clicking on 'news' 'tos' 'articles' it takes you to what you want to go to and the address ends with either html or htm.
Astroman
07-02-2007, 04:36 AM
What version of osDate are you using?
burton
07-02-2007, 05:27 AM
osdate 2.04
Astroman
07-02-2007, 05:51 AM
You will need to add this line in:
# Translates sitename/username to sitename/showprofile.php?username=username
RewriteRule ^([a-zA-Z0-9_-]+)$ showprofile.php?username=$1
If you have it set up to show usernames in the URL.
burton
07-02-2007, 09:33 AM
Astroman, that additonal insert works for the front end user who wants to view profiles. Many thanks for the help with this matter.
I have another question though, I have put the .htaccess file into the admin folder, but so far when I am logged in as admin, I am unable to view profiles, I am being returned to the admin index page.
Should I be including another line into the .htaccess file?
Astroman
07-02-2007, 11:00 AM
I have both files written the same I think, including that last addition.
burton
07-02-2007, 01:28 PM
Astroman, it is working fine now, I can only assume it must of needed time to update etc, and that I should be a little more patient with it.
Much obliged for your help and assistance.
thewashman
07-05-2007, 10:11 PM
What about an sub domain address like "singles.nwachat.com" what would the settings need to be?
Astroman
07-05-2007, 11:53 PM
I think it would be the same because a proper subdomain setup like that isn't the same as using a subfolder, just treat your subdomain folder as if it was the root folder I think.
thewashman
07-06-2007, 05:55 AM
Well I renamed the .htaccess.txt ".htaccess" and moved it to the root folder, and all I get is error 404 on the new SEO freindly pages. Please Help.
Astroman
07-06-2007, 08:10 AM
Do you mean the root folder of the domain, or the folder for the subdomain?
stuartindigo
07-06-2007, 09:58 AM
How is this setup on your server?
You seem to have your base directory set to /osdate/ which does not appear to be correct - I think you need / .
Stuart
msdesmarais
07-06-2007, 10:34 AM
You would need to drop it in the sub domain [root].
What about an sub domain address like "singles.nwachat.com" what would the settings need to be?
thewashman
07-06-2007, 10:49 AM
Fixed! I had actually already changed "/osdate/" to "/" while in server view of dreamweaver and saved it. But I forgot to PUT file to overwrite the server copy. Thanks stuartindigo , I really appreciate your guys help. I should have opened the stupid file from the server and checked directly. "noob error"
LordDax
07-16-2007, 01:51 PM
This is the GREAT SOLUTION to all my problem. thanks!!!!:cool:
You will need to add this line in:
# Translates sitename/username to sitename/showprofile.php?username=username
RewriteRule ^([a-zA-Z0-9_-]+)$ showprofile.php?username=$1
If you have it set up to show usernames in the URL.
LordDax
07-18-2007, 02:18 AM
I made this litte mod to my .htacces and it work very well, but with the users composed with a char 'space' (for example "dante e beatrice") and with the user name with the "&" char i get the error "page not found".. canyou help me to solve thes problem?
You will need to add this line in:
# Translates sitename/username to sitename/showprofile.php?username=username
RewriteRule ^([a-zA-Z0-9_-]+)$ showprofile.php?username=$1
If you have it set up to show usernames in the URL.
common26
07-19-2007, 08:24 AM
I have just uploaded this to my root, is this well formated and should work?
************************************************** *
# todoxxxxxxxx.com
ErrorDocument 404 http://www.todoxxxxxxxxx.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
# User-Agents with no privileges (mostly spambots/spybots/offline downloaders that ignore robots.txt)
RewriteCond %{REMOTE_ADDR} “^63\.148\.99\.2(2[4-9]|[3-4][0-9]|5[0-5])$” [OR] # Cyveillance spybot
RewriteCond %{REMOTE_ADDR} ^12\.148\.196\.(12[8-9]|1[3-9][0-9]|2[0-4][0-9]|25[0-5])$ [OR] # NameProtect spybot
RewriteCond %{REMOTE_ADDR} ^12\.148\.209\.(19[2-9]|2[0-4][0-9]|25[0-5])$ [OR] # NameProtect spybot
RewriteCond %{REMOTE_ADDR} ^64\.140\.49\.6([6-9])$ [OR] # Turnitin spybot
RewriteCond %{HTTP_REFERER} iaea\.org [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} ^[A-Z]+$ [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} anarchie [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} Atomz [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} cherry.?picker [NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} “compatible ; MSIE 6.0? [OR] # spambot (note extra space before semicolon)
RewriteCond %{HTTP_USER_AGENT} crescent [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} “^DA \d\.\d+” [OR] # OD
RewriteCond %{HTTP_USER_AGENT} “DTS Agent” [OR] # OD
RewriteCond %{HTTP_USER_AGENT} “^Download” [OR] # OD
RewriteCond %{HTTP_USER_AGENT} EasyDL/\d\.\d+ [OR] # OD
RewriteCond %{HTTP_USER_AGENT} e?mail.?(collector|magnet|reaper|siphon|sweeper|ha rvest|collect|wolf) [NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} express [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} extractor [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} “Fetch API Request” [OR] # OD
RewriteCond %{HTTP_USER_AGENT} flashget [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} FlickBot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} FrontPage [OR] # stupid user trying to edit my site
RewriteCond %{HTTP_USER_AGENT} getright [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} go.?zilla [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} “efp@gmx\.net” [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} grabber [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} imagefetch [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} httrack [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} “Indy Library” [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} “^Internet Explore” [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} ^IE\ \d\.\d\ Compatible.*Browser$ [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} “LINKS ARoMATIZED” [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} “Microsoft URL Control” [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} “mister pix” [NC,OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} “^Mozilla/4.0$” [OR] # dumb bot
RewriteCond %{HTTP_USER_AGENT} “^Mozilla/\?\?$” [OR] # formmail attacker
RewriteCond %{HTTP_USER_AGENT} MSIECrawler [OR] # IE’s “make available offline” mode
RewriteCond %{HTTP_USER_AGENT} ^NG [OR] # unknown bot
RewriteCond %{HTTP_USER_AGENT} offline [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} net.?(ants|mechanic|spider|vampire|zip) [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} nicerspro [NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} ninja [NC,OR] # Download Ninja OD
RewriteCond %{HTTP_USER_AGENT} NPBot [OR] # NameProtect spybot
RewriteCond %{HTTP_USER_AGENT} PersonaPilot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} snagger [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} Sqworm [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} SurveyBot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} tele(port|soft) [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} TurnitinBot [OR] # Turnitin spybot
RewriteCond %{HTTP_USER_AGENT} web.?(auto|bandit|collector|copier|devil|downloade r|fetch|hook|mole|miner|mirror|reaper|sauger|sucke r|site|snake|stripper|weasel|zip) [NC,OR] # ODs
RewriteCond %{HTTP_USER_AGENT} vayala [OR] # dumb bot, doesn’t know how to follow links, generates lots of 404s
RewriteCond %{HTTP_USER_AGENT} zeus [NC]
RewriteRule .* - [F,L]
************************************************** *
Regards,
<CG>
:rolleyes:
LordDax
07-21-2007, 02:48 AM
Help. does someone have a suggeremento that can help me?
I made this litte mod to my .htacces and it work very well, but with the users composed with a char 'space' (for example "dante e beatrice") and with the user name with the "&" char i get the error "page not found".. canyou help me to solve thes problem?
Astroman
07-21-2007, 03:10 AM
To be honest I don't use the username thing, I just have all profile like this: http://www.dreamdating.net/20120.htm for instance, so I haven't looking into names with spaces. There should be a way to replace a space with _ though.
LocalPhotoRatings
07-26-2007, 01:23 PM
Help. does someone have a suggeremento that can help me?
I AM HAVING THIS PROBLEM ALSO :
my user name is " Website Administrator " and with the space in there (which alot of me and my users have) when you click to view their profile the browser pulls it up as members/Website20%Adminsitrator but for people with out the space it pulls it up JUST FINE what can we do so that it knows to bring the space together for when it is clicked ????
PLEASE HELP !!!!!!!!!!!
deros
07-28-2007, 04:03 PM
Im having the problem that site.com/username is resulting in a blank page. all other seo stuff works, the tos, faqs, services and even site.com/id#.htm works its just username isnt working.
I'm using Godaddy as my host and the only thing I can possibly come up with as a reason is that the php is processed before the mod_rewrite rule is, therefore the php doesnt know which usder to call up, is there a way to fix this or do I just need to find a different host and I'm using 2.04 with the inlcuded .htaccess
LocalPhotoRatings
07-28-2007, 09:26 PM
i use godaddy post your htaccess and i will try to fix it for you so that it will work
Loversmatch
07-28-2007, 11:59 PM
have raised this question before without a response. As this thread is seo related maybe someone here can help.
As the forum threads grow can you have a rule in the htaccess file that will make a search engine spider the threads in the forum as this will surely increase page ranking.
regards
Ed
deros
07-29-2007, 09:13 AM
my .htaccess is the same one included with 2.04 did yours work out of the box or did you have to modify it to get sitename.com/username ?
burton
08-17-2007, 09:08 AM
Somehow I think those rewrite conds are more suited to a vb forum. I have attempted to add to my existing htaccess, and I receive an internal server error 500.
I guess having something like that to block the net nuisances that are out there would be welcomed, perhaps one of the more experienced amongst us can come up with a work around or put me in the right direction to get the rewritecond to work.
I have just uploaded this to my root, is this well formated and should work?
************************************************** *
# todoxxxxxxxx.com
ErrorDocument 404 http://www.todoxxxxxxxxx.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
# User-Agents with no privileges (mostly spambots/spybots/offline downloaders that ignore robots.txt)
RewriteCond %{REMOTE_ADDR} “^63\.148\.99\.2(2[4-9]|[3-4][0-9]|5[0-5])$” [OR] # Cyveillance spybot
RewriteCond %{REMOTE_ADDR} ^12\.148\.196\.(12[8-9]|1[3-9][0-9]|2[0-4][0-9]|25[0-5])$ [OR] # NameProtect spybot
RewriteCond %{REMOTE_ADDR} ^12\.148\.209\.(19[2-9]|2[0-4][0-9]|25[0-5])$ [OR] # NameProtect spybot
RewriteCond %{REMOTE_ADDR} ^64\.140\.49\.6([6-9])$ [OR] # Turnitin spybot
RewriteCond %{HTTP_REFERER} iaea\.org [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} ^[A-Z]+$ [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} anarchie [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} Atomz [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} cherry.?picker [NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} “compatible ; MSIE 6.0? [OR] # spambot (note extra space before semicolon)
RewriteCond %{HTTP_USER_AGENT} crescent [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} “^DA \d\.\d+” [OR] # OD
RewriteCond %{HTTP_USER_AGENT} “DTS Agent” [OR] # OD
RewriteCond %{HTTP_USER_AGENT} “^Download” [OR] # OD
RewriteCond %{HTTP_USER_AGENT} EasyDL/\d\.\d+ [OR] # OD
RewriteCond %{HTTP_USER_AGENT} e?mail.?(collector|magnet|reaper|siphon|sweeper|ha rvest|collect|wolf) [NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} express [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} extractor [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} “Fetch API Request” [OR] # OD
RewriteCond %{HTTP_USER_AGENT} flashget [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} FlickBot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} FrontPage [OR] # stupid user trying to edit my site
RewriteCond %{HTTP_USER_AGENT} getright [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} go.?zilla [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} “efp@gmx\.net” [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} grabber [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} imagefetch [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} httrack [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} “Indy Library” [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} “^Internet Explore” [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} ^IE\ \d\.\d\ Compatible.*Browser$ [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} “LINKS ARoMATIZED” [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} “Microsoft URL Control” [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} “mister pix” [NC,OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} “^Mozilla/4.0$” [OR] # dumb bot
RewriteCond %{HTTP_USER_AGENT} “^Mozilla/\?\?$” [OR] # formmail attacker
RewriteCond %{HTTP_USER_AGENT} MSIECrawler [OR] # IE’s “make available offline” mode
RewriteCond %{HTTP_USER_AGENT} ^NG [OR] # unknown bot
RewriteCond %{HTTP_USER_AGENT} offline [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} net.?(ants|mechanic|spider|vampire|zip) [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} nicerspro [NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} ninja [NC,OR] # Download Ninja OD
RewriteCond %{HTTP_USER_AGENT} NPBot [OR] # NameProtect spybot
RewriteCond %{HTTP_USER_AGENT} PersonaPilot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} snagger [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} Sqworm [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} SurveyBot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} tele(port|soft) [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} TurnitinBot [OR] # Turnitin spybot
RewriteCond %{HTTP_USER_AGENT} web.?(auto|bandit|collector|copier|devil|downloade r|fetch|hook|mole|miner|mirror|reaper|sauger|sucke r|site|snake|stripper|weasel|zip) [NC,OR] # ODs
RewriteCond %{HTTP_USER_AGENT} vayala [OR] # dumb bot, doesn’t know how to follow links, generates lots of 404s
RewriteCond %{HTTP_USER_AGENT} zeus [NC]
RewriteRule .* - [F,L]
************************************************** *
Regards,
<CG>
:rolleyes:
burton
08-17-2007, 09:10 AM
Help. does someone have a suggeremento that can help me?
I was using the username in accordance with the kind help from Astroman, however, when I had users signing up with spaces in their username, I reverted back to userid.
I guess this is why there is an option to do this in the SEO settings.
LordDax
08-17-2007, 02:40 PM
thanks. i already solved the problem.
msdesmarais
08-18-2007, 09:38 PM
Whare is Vijay?? He was supposed to have made a fix for this in v2.0.6... :cool:
Astroman
08-19-2007, 02:17 AM
I don't know why the SEO and SEF thing has always been such a botch job, or after thought, with osDate, where we have to fix it ourselves. It would make more sense if it just worked; osDate sites would me more successful with better page indexing and more people would recommend it, which means more people would download it and more people would buy the templates etc.
vijaynair
08-19-2007, 07:13 AM
The signup program is already modified to check spaces.
For already existing usernames, it is not possible to do. For which, I gave a suggestion to update all usernames in various tables with "_" where space occur.
Whare is Vijay?? He was supposed to have made a fix for this in v2.0.6... :cool:
LordDax
08-19-2007, 08:32 AM
yes.. i choose the best way... i corrected manually any user and i send tho him a mail with the new user... (i have 500 user.. but only 40 need a correction)..:cool:
astroturkey
09-21-2007, 12:15 PM
I've been at this for over 2 weeks now & could use some help please :)
My site is installed to dating.site.com/osDate
1) does site url prefix meen "http://dating.site.com"?
as in:
a) rewritebase http://dating.site.com/osDate/
or
b) rewritebase dating.site.com/osDate/
or
c) rewritebase /osDate/
?
2) Does .htaccess file get placed in
a)home/public_html/osDate
b)home/public_html
c)home
d)home/public_html/osDate/admin
e)all of the above?
f) a select few that I haven't listed?
3) Do they conflict with each other if there is one in each directory? Do I need to delete ones that aren't nesessary?
My isp is mute on the workings of my htaccess, and only says I can make per directory changes through php.ini, when I attempt to research this, it says these changes are reflected in my htaccess file. Im confused.
I overwrote my original htaccess in my home, public & osDate directories with this:
###<Files 403.shtml>
###order allow,deny
###allow from all
####</Files>
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteEngine On
RewriteBase /osDate/
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^contactus.html$ contactus.php
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates sitename/username to sitename/showprofile.php?username=username
RewriteRule ^([a-zA-Z0-9_-]+)$ showprofile.php?username=$1
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9_-]+)$ showprofile.php?username=$1 [QSA,L]
###############################
#Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Protect files
<Files ~ "^(.*)\.(inc|inc\.php|tpl|sql)$">
Order deny,allow
Deny from all
</Files>
# Protect directories
<Files ~ "^(files|images|includes|lang|myconfigs|libs(/.+)?|temp(/.+)?|templates(/.+)?|ja
Order deny,allow
Deny from all
</Files>
# Disable directory browsing
Options -Indexes
###############################
After enabling SEO settings, still get the profile not found error. I DID back up my htaccess, but had 2 bak files, and for some odd reason my ws_ftp tool reports that they are 2kb in size when my textpad reports they are actually around 800kb now, I deleted the wrong ones. I asked my isp to restore them, and they edited the wrong one, and did not restore the originals which would have held the clues I needed to solve this.
I created a subdirectory through cpanel called gay.dating.site.com,which resides in home/public_html/gay folder, I then made it redirect back to my original dating.site.com; inside that folder is a ready made htaccess file that reads the following:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^gay.dating.site.com
RewriteCond %{HTTP_HOST} ^www.gay.dating.site.com$
RewriteRule ^(.*)$ http://dating.site.com/osDate [R=301,L]
Does this provide any clues that Im missing? Is it the %{HTTP_HOST} that I must insert into each rewrite rule? Im not going any further with this until I can get some further clarification. Unfortunately, my hosting service isnt being too helpful.
I have my php.info file ready to send to any senior members that would like to assist me. I thank you in advance :)
Astroturkey
My new mantra: nothing worthy of doing ever comes easy; patience, young grasshoppa
Astroman
09-21-2007, 12:36 PM
Well you've made my head spin reading all that. Are you saying you've put osdate in a subfolder that is already, itself, in a subdomain, then inside that subdomain you've also put an addon domain and tried to redirect it back to the original subdomain? Are deliberately trying to make life difficult for yourself? :)
astroturkey
09-21-2007, 12:41 PM
I think I like making thinghs difficult for myself, I couldnt get my orginal htaccess back, to see if there any clues to changes that I might need to make, I mad the new subdomain to see what the htaccess file would look like to search for any clues as to what Im doing wrong. I also added a redirect to the domain through cpanel to p[oin to my original directory. Cpanel makes the htaccess file for you, thats why I did it. As an info gathering method :)
My site is installed into dating.site.com/osDate/index.php, or
home/public_html/osDate/index.html
Thanks for keeping the humour :D
Astroman
09-21-2007, 12:52 PM
You can get the original .htaccess file back by getting out of the downloaded osdate folders again, it's in a folder called SEF_URLs.
astroturkey
09-21-2007, 01:01 PM
Now that I have a working original, can you answer these 3 questions please?
1) does site url prefix meen "http://dating.site.com"?
as in:
a) rewritebase http://dating.site.com/osDate/
or
b) rewritebase dating.site.com/osDate/
or
c) rewritebase /osDate/
?
2) Does .htaccess file get placed in
a)home/public_html/osDate
b)home/public_html
c)home
d)home/public_html/osDate/admin
e)all of the above?
f) a select few that I haven't listed?
3) Do they conflict with each other if there is one in each directory? Do I need to delete ones that aren't nesessary?
Sorry Astroman, I know this is painfull...I promise to by you a beer afterwords ;)
Astroman
09-21-2007, 01:01 PM
I got your PM, I can't access your site or you php file.
I think you probably need to get rid of all your .htaccess files wherever they are and start again, tell me what you're doing in steps.
astroturkey
09-21-2007, 01:39 PM
I stripped all htaccess from the site except for the one in SEF url's
I just placed this exact text into .htaccess, and placed it into home/public_html
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /osDate/
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates sitename/username to sitename/showprofile.php?username=username
RewriteRule ^([a-zA-Z0-9_-]+)$ showprofile.php?username=$1
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
enabling mod_rewrite & leaving user id disabled
makes the profile error
enabling mod_rewrite & leaving user id enabled
makes the profile error
astroturkey
09-21-2007, 02:08 PM
I also have a logout page with a link back to the login page ,written in html as <a href="http://mysite.com/osDate">when you click it, it takes you back to http://mysite.com/osDate/index.php;
but when the mod_rewrite is enabled, I get a this error:
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This also show's in the address bar:
http://mysite.com/index.php?page=login&returnto=&get_params=a:1:{s:8:%22username%22;s:6:%22osDate%2 2;}
astroturkey
09-21-2007, 02:23 PM
I deleted the htaccess from my public_html, and put it into public_html/osDate, now everything works. Thanks for the walk-through Astroman! Im sure glad they discovered all that alcohol out in space, because I dont think I can afford to bye you what I really owe you in beer ;)
Thank you very much sir !!!
You guys on this site are the best!!!!!
Astroturkey
Astroman
09-21-2007, 02:54 PM
You don't need the folder SEF_URLs on your server, it doesn't do anything - it's just there for you to download. They should put it outside the public_html folder really because it confuses people, loads of people upload that folder when they don't need to.
Oh, you figured out how to get it working anyway, well done! :)
champ0053
09-23-2007, 11:09 AM
I got the seo to work in the directory but when the site is pulled up in the subdomain get the 404 error when viewing profiles. Also the banners don't show up in the subdomain either.
i'm lost in the whole seo thing.... I'd like help making it work. i have no idea what to put for what pages. do i just copy and paste other peoples in this forum and hope it works???? or do i have to put my own addresses.. maybe someone private message me... maybe seo will help me... i know i have google bots and yahoo bots already crawling my site... i'm in google and yahoo.msn... and other search engines. so will this help more i have it off. but need better unique traffic.
astroturkey
09-23-2007, 03:56 PM
I have far less hair than before trying to figure out the seo settings, I tried other peoples htaccess that were posted, but none of them worked either, in the end, with the kind help of Astroman, making me start fresh again, and going step by step, did it work for me. Go find your SEF_URL folder and the htaccess.txt file in there worked from me, after renaming it .htaccess It also wouldnt work until I got rid of the other conflicting ones in the other folders on my site that I had been using and testing to try and solve.
The instruction line at the top of the htaccess.txt file only served to confuse a newbee like me ---->
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /osdate/
I tried putting in my url prefix as per top instructions:
RewriteBase mydating.site.com/osdate/
I placed it in my site root, then tried it in my osdate root
but trying BOTH/ and or EITHER ways DID NOT work for me
If I installed my osDate into http://mydating.site.com, then htaccess goes into my website folder where my original website index.html resides, this is called your webserver root, but it is ALSO the osdate root, because thats where you installed your dating program. Both roots share the same directory. I think this is were a lot of confusion may be coming from.
My osdate is installed in http://mydating.site.com/osdate, so the htaccess was put into my osdate folder, or osdate root, NOT the site root. Inside of htaccess, this will read as:
RewriteBase /osdate/
My working solution is quite different from the instructions that are given in the htaccess.txt file.
Im being hosted on:
Linux serv01.mysite.com 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686
Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
PHP Version 5.0.5
good luck :)
Astroturkey
msdesmarais
09-23-2007, 05:49 PM
Root, or top level, is the servers public_html, htdocs or www directory. If you have osDate installed at root, the .htaccess is uploaded to root [public_html, htdocs or www directory] and the RewriteBase is /. If you installed osDate in a child directory, such as a directory named osdate, then the RewriteBase is /osdate/.
Having osDate installed in a subdomain is the same as having osDate installed in the servers root directory [as mentioned above]. The .htaccess would be upload to the subdomain root along with all other directories, files and folders. The RewriteBase is also /. And again, using a subdomain, if you installed osDate in a folder [subdomain.yourdomain.com/foldername] then the RewriteBase is /foldername/.
champ0053
09-24-2007, 12:36 PM
To me and I am no expert that doesn't make sence the subdomain part or at least on my hosting companys servers because www.mysite.com is in the public_html folder and the subdomains point to specific folders in the public_html folder if I put the .htaccess file in the public html file it would get rid of the .htaccess file that is already there and then the main domain would not work. Just adding an opion I am no expert.
My hosting company puts everything in public_html. and they already have a htaccess there.. my install is in public_html. so i figure i add the rewrite thing to that file that is already there... so is this how i would write everyone
RewriteRule/ ^privacy.html$ index.php?page=privacy
like this? or like
/RewriteRule ^privacy.html$ index.php?page=privacy
this is where it confuses me.. you can tell i'm a real newbie at this. :D
sysadmin
11-07-2007, 03:22 PM
Hi,
Will you help me to re-write the url for this:
http://www.sitename.com/username/age/gender/city/country
Thanks
Astroman
11-07-2007, 05:26 PM
I don't think it's possible to do that. Well actually I guess it must be, but I'm sure it will cause problems somehow?
jenniferose
09-19-2008, 04:55 AM
To be honest I don't use the username thing, I just have all profile like this: http://www.dreamdating.net/20120.htm for instance, so I haven't looking into names with spaces. There should be a way to replace a space with _ though.
Hello Astroman!
I was wondering if its better for search engines if when clicking on the profiles with SEO turned on for the result to be domain/93.htm fpr example or domain/username?
If domain/username was being used instead of domain/id.htm, wouldn't it be easy for people to just type in domain/username, and would that be of any advantage to them?
# change to yoursite.com
ErrorDocument 404 http://lesbiandating.toucheofclass.com.au
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates sitename/username to sitename/showprofile.php?username=username
RewriteRule ^([a-zA-Z0-9_-]+)$ showprofile.php?username=$1
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
Above is my .htaccess file
My site it at http://lesbiandating.toucheofclass.com.au and I wish to make it friendly to search engines.
I am using osdate v2081
I am not using a default template, but if i do it changes from domain/id.htm to domain/username and I have no idea why.
My .htaccess is in the root folder of my installation thus at / as I am using a subdomain for installation.
Does this look right to use to be search engine friendly Astroman, as you are the man to ask about this from all these posts. Thank you in advance.
Jennifer
Astroman
09-19-2008, 11:23 AM
I don't think the search engines are too bothered which one you use in terms of SEO, it's more a matter of which one you prefer.
jenniferose
09-19-2008, 04:53 PM
Thanks so much!
FreeArticlePublishing
09-20-2008, 03:15 PM
Search Engine Friendly URLs this feature seems to be great with the new version except one small detail viewing profiles while in admin it pulls it us as www.domain/admin/username that takes you to a page that sayes user doesn't exist
With seo turned off when looking at profiles thru admin you are taken to this page that workes fine
http://domain.com/admin/showprofile.php?id=1508
Whats the solution for this
vijaynair
09-20-2008, 06:27 PM
In admin, you need to have appropriate .htaccess file
FreeArticlePublishing
09-20-2008, 06:56 PM
In admin, you need to have appropriate .htaccess file
Thank You as usual your suggestion worked like a charm.
Profile display is different with seo inabled then with it disabled in admin but it workes. With seo inabled its just like visiting the main site without it inabled admin has its own display for profiles.
jenniferose
09-20-2008, 07:45 PM
vijaynair is totally right about the .htaccess in admin.
The .htaccess file in the root directory needs to be copied to osdate/admin directory.
Then you will have no problems as it works for me now that I've done that also.
Cheers
sddarkman619
04-09-2009, 09:15 AM
I copied Astromans .htaccess file into my root directory and my admin directory. I turn on the mod rewrite and it works fine for the basic rewrite of:
http://www.mysite.com/5.htm
but when I turn on the username part it just goes back to the index page as it is not working on rewriting the username. it would go to page not found but I have it fixed to go to the front page. but everythign else works fine, just not the username pages.
here is my .htaccess file:
# change to yoursite.com
ErrorDocument 404 http://www.mysite.com
RewriteEngine on
# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /
RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq
RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1
RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1
RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews
# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1
TIA...
niraj_karia
04-25-2009, 03:14 AM
hi,
I think .htaccess wont work on windows platform server.
what is way for SEO on Win platforms?
Peter Ivan
06-06-2009, 05:42 PM
I am happy to find this forum and especially this thread is very informative and valuable. I am going to recommend all of my friends.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.