| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 12306|Reply: 15
Collapse the left

SEO Settings

[Copy link]

 India

Post time: 2013-05-25 21:34
| Show all posts |Read mode
Edited by code3h at 2013-5-25 22:35

Hi There,

I was trying to make some changes in SEO Settings. I'm planning to make all the static pages availible.
Here is what I have done (Not Succeded)

In ACP > Global > SEO > Static URL >
There I have selected all of them to availible mode!



Then I clicked on View the current Rewrite Rules and copy respective code to .htaccess
  1. <IfModule mod_rewrite.c>
  2.         RewriteEngine On
  3.         RewriteCond %{QUERY_STRING} ^(.*)$
  4.         RewriteRule ^(.*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2&%1
  5.         RewriteCond %{QUERY_STRING} ^(.*)$
  6.         RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3&%1
  7.         RewriteCond %{QUERY_STRING} ^(.*)$
  8.         RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3&%1
  9.         RewriteCond %{QUERY_STRING} ^(.*)$
  10.         RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&%1
  11.         RewriteCond %{QUERY_STRING} ^(.*)$
  12.         RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3&%1
  13.         RewriteCond %{QUERY_STRING} ^(.*)$
  14.         RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&%1
  15.         RewriteCond %{QUERY_STRING} ^(.*)$
  16.         RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3&%1
  17.         RewriteCond %{QUERY_STRING} ^(.*)$
  18.         RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3&%1
  19.         RewriteCond %{QUERY_STRING} ^(.*)$
  20.         RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3&%1

  21. </IfModule
Copy the Code
After doing so, I'm getting the following error on
http://domain.com/forum-2-1.html

Not Found

The requested URL /forum-2-1.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any suggestions to fix this issue are appriciated !


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 India

 Author| Post time: 2013-06-01 21:16
| Show all posts
????

No one knows about it ?

 Russia

Post time: 2013-06-03 10:44
| Show all posts
1) Enable Rewrite Engine and .htaccess in your hosting control panel.
2) Add the RewriteBase / instruction after RewriteEngine On
3) Clean ALL the cache
Post time: 2013-06-18 11:58
| Show all posts
vot replied at 2013-6-3 11:44
1) Enable Rewrite Engine and .htaccess in your hosting control panel.
2) Add the RewriteBase / instr ...

Thank You Admin!
have same problem!

in create a forum, and some subforum and threads, at now i see SEO setting ,so i was enabeld those (pic 1),
then, i updated cache, and checked last threds, the result was this: URL changed to new SEO friendly, but page was not opened, (pic2)
i am not expert in php, but i think some tables or data must to be modify,

in your instruction (up post), i dont understand your help, please say in detail,

Thank you in Advance,  






This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2013-06-18 12:03
| Show all posts
CREATE the ".htaccess" file in the site root folder!
Then copy the suggested by Discuz SEO settings into that file.

Post time: 2013-06-18 16:57
| Show all posts
Edited by mj1919 at 2013-6-18 17:58
vot replied at 2013-6-18 13:03
CREATE the ".htaccess" file in the site root folder!
Then copy the suggested by Discuz SEO settings  ...

that file already was in root, but was empty!
suggested by Discuz SEO settings

did you mean these?

Apache Web Server (independent host used)

AND

Apache Web Server (Virtual Host used)

AND

IIS Web Server (independent host user)

AND....

i did copy the code under the first section, into .htaccess file and saved it, cache updated but NO THING, that error shown.,
i used wrong code?
my server is shared, and has cpanel!! and idont know more!!, i have access to cpanel, can i found from that?
  1. <IfModule mod_rewrite.c>
  2.         RewriteEngine On
  3.         RewriteCond %{QUERY_STRING} ^(.*)$
  4.         RewriteRule ^(.*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2&%1
  5.         RewriteCond %{QUERY_STRING} ^(.*)$
  6.         RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3&%1
  7.         RewriteCond %{QUERY_STRING} ^(.*)$
  8.         RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3&%1
  9.         RewriteCond %{QUERY_STRING} ^(.*)$
  10.         RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&%1
  11.         RewriteCond %{QUERY_STRING} ^(.*)$
  12.         RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3&%1
  13.         RewriteCond %{QUERY_STRING} ^(.*)$
  14.         RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3&%1
  15.         RewriteCond %{QUERY_STRING} ^(.*)$
  16.         RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3&%1
  17.         RewriteCond %{QUERY_STRING} ^(.*)$
  18.         RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3&%1
  19.         RewriteCond %{QUERY_STRING} ^(.*)$
  20.         RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3&%1
Copy the Code

 Russia

Post time: 2013-06-18 18:14
| Show all posts
Your words not enough to understand the problem.
Show the site.

 Russia

Post time: 2013-06-18 19:58
| Show all posts
Can not help,
because of your server does not exist outside the Iran.

Rate

Number of participants 1Rating +1 Collapse Reason
mj1919 + 1

View Rating Log

 Russia

Post time: 2013-06-18 20:14
| Show all posts
Your .htaccess looks ok.
Check in your hosting control panel,
if ".htaccess" is enabled for your host?!

Rate

Number of participants 1Rating +1 Collapse Reason
mj1919 + 1

View Rating Log

Post time: 2013-06-19 09:35
| Show all posts
vot replied at 2013-6-18 21:14
Your .htaccess looks ok.
Check in your hosting control panel,
if ".htaccess" is enabled for your hos ...

i asked from my host, your question :
".htaccess" is enabled for your host?!


they said this answer!!! :
yes,
but , personal modification/editing of "php.ini" restricted for each user.

i dont understand this.
i can use SEO options in Discuz on my host?

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-10-06 01:38 GMT+3 , Processed in 0.091487 sec., 13 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list