New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSCache and CWP CageFS at no extra cost with all CWPpro licences. The LSCache plugin is integrated into our WordPress and other script installers, and CWP CageFS gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

.htaccess works, but isnt working completely.?

Started by x1705, September 02, 2019, 02:34:32 PM

Previous topic - Next topic

x1705

I am trying to do a Rewright in my .htaccess file.. i have it placed in my sites document root (example.com/topics)

I have also (for testing) added it to the vhosts.conf of that domain. (which didnt do anything better)

here is the htaccess file paste:
Options +FollowSymlinks -MultiViews
Options +Indexes
RewriteEngine On
RewriteBase /
<IfModule mod_rewrite.c>

order allow,deny
allow from all

RewriteRule ^topics/(.+)\+(.+)$ topics/$1_$2 [R=301] [N]
RewriteRule ^/example.com/topics/ /example.com/topics/?

The first 'rule' should replace the "+" symbols into "_" (in the URI) after i do a search..
The second 'rule' should 'remove' the 'QUERY SYMBOLS' ("?q=")

when i do a "search" (using a standard form)
the URL changes to "example.com/topics/?q=word+searched+for"

i would like to make that rewright do this:
"example.com/topics/word_searched_for"

ive seen it done.. there are MANY examples online (stackexchange/google, etc)
NON have worked..

I can verify my mod_rewrite is working.

and

i know the proper .htaccess file IS being used,
as if i make a random change, it will through a "500 Error".
so, i know its working.

anyways, i have worked on this for several Days..
ANY help or suggestion would be grately appreciated.

Thanks in advance.
X



evansa

comment the following from the .htaccess file

#Options +FollowSymlinks -MultiViews
#Options +Indexes

x1705

Thanks for the reply, i commented those out, and it still does not work.

this is really  bizarre, i have literally tried EVERY RewriteCond and Rule that i can find.

:/