Đang Thực Hiện

163130 Mod Rewrite & Drop PHPSESSID

I believe that I need help with my .htaccess file. I have been searching forums but still have not found a fix. I'm not familiar with editing .htaccess so I may be doing something wrong.

1. I need mod rewrite to actually work. The web host claims that it is enabled, but nothing I do seems to work.

I want to change the URLs from: [url removed, login to view]

to:

[url removed, login to view] or [url removed, login to view]

I have currently tried the following code along with a few others in my .htaccess file but got no results (I only recieved either an error 500 page or no effect at all):

Options +FollowSymLinks

RewriteEngine on

RewriteRule product_detail-recordID-(.*)\.html$ [url removed, login to view]$1

2. I also need to drop PHPSESSIDs from my URLs so they won't be indexed by google with the session ids attached to the URLs. Can anyone tell me if my dynamic pages will still be indexed if I do this?

When I inserted the following code in my .htaccess file I recieved an error:

php_flag session.use_trans_sid off

php_flag register_globals off

Then I found this code in Google's help forum that is supposed to remove the session ids when crawled, so I inserted the following code in .htaccess but when I crawled it with a spider simulator it still showed the PHPSESSID's:

RewriteCond %{HTTP_USER_AGENT} "Google" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "Slurp" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "MSNBOT" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "teoma" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "ia_archiver" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "Scooter" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "Mercator" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "FAST" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "MantraAgent" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "Lycos" [NC,OR]

RewriteCond %{HTTP_USER_AGENT} "ZyBorg" [NC]

RewriteCond %{QUERY_STRING} SESSIONID

RewriteRule ^(.*)$ $1? [L,R=301]

Is the simulator not showing the resultse because the spider simiator bot is not listed in the code above? How can I test this to see if it is working?

I'm just looking for someone who can fix these issues.

Kỹ năng: Bất kì công việc gì, Thiết lập Bản thảo, SEO

Xem thêm: how to fix error on web page, claims pages, anyone need help with editing, SCOOTER, rewrite script, php seo rewrite, fix 301, drop php htaccess, php rewriteengine, htaccess rewriteengine, htaccess 301, php htaccess rewriteengine, rewriteengine, php fix page seo, mod seo, php register_globals, error code 500 php, bot seo, page fast bot, fast bot page, php htaccess help, error code 500, remove results page google, script bot web page, fix effect

Về Bên Thuê:
( 6 nhận xét )

Mã Dự Án: #1909321